A 12-year-old boy survived 40 minutes trapped under an avalanche in the French Alps before he was found alive — in a rescue operation that officials are calling a Christmas miracle.

The boy was skiing on a closed black diamond run at the La Plagne ski resort in Savoie with his dad on Wednesday when he was swept away in a barrage of snow, cops told BFM TV.

The avalanche dragged him at least 110 yards before he was buried under it all.

The young skier wasn’t equipped with an avalanche detector, but he was eventually found by a sniffer dog, and rescuers plucked him from the powder and sent him to a local hospital.

Rescue workers said the chances of staying alive under snow are minuscule after just 15 minutes — so surviving for 40 minutes is miraculous.

“We can call it a miracle. A day after Christmas, there was another gift in store,” Capt. Patrice Ribes said.