"Thanks to everyone who helped make it happen!" Madonna wrote on her Facebook page.
The singer bought the painting at a Sotheby's auction for $3.4 million in 1990. Proceeds from Tuesday's sale will go to Madonna's Ray of Light Foundation, which supports girls' education projects in Afghanistan, Pakistan and other countries, E! News said.
2014: The Year in Fashion [PHOTOS]
Jason Aldean to extend Burn It Down Tour