The 25-year-old pulled on his golf clothing on Sunday a shot behind red-hot favourite Charl Schwartzel, who led the way at 15-under-par.
Three birdies in his opening four holes looked to put the South African out of reach, but a triple-bogey six on the sixth hole brought him back into the chasing pack.
An added double bogey at the 10th pushed Schwartzel three-shots behind 2011 champion Hennie Otto who held a one shot lead over Madsen entering the back nine.
Otto carded three additional birdies between 12 and 14, but gave those shots back within two holes following a bogey at 15 and a double at 16.
At this point Madsen was two-shots clear of Otto and Jbe Kruger who had posted the clubhouse score at 17-under-par.
The Dane calmly stroked home par putts on 17 and 18 with reply from Otto to card a flawless final round of 67 to claim his first European Tour win.
© Copyright Press Association
News brought to you by Glenmuir, making you enjoy your golfing more.
See our range of men's golf trousers.