A 46-year-old mom ate twigs and drank her own urine while trudging nearly 30 miles through up to three feet of snow in northern Arizona before being rescued in what one local official called “a Christmas miracle.”

Searchers found Karen Klein holed up in an abandoned cabin just as a major storm was bearing down on the region, said Jim Driscoll, the chief sheriff’s deputy in Cococino County, Ariz.

“This is a Christmas miracle,” Driscoll told the Associated Press.

“We were really beginning to think, especially with the snow coming in … we pulled out all the stops.”

Klein was vacationing with her husband and 10-year-old son when their rental car got stuck in a ditch along a snowy road en route to the Grand Canyon on Thursday afternoon.

Klein, a marathon runner and triathlete, set out on foot to seek help when her family decided she was in the best shape to try, Driscoll said.

Wearing a parka, knit cap and hiking boots — but no snow gear — the community college professor from Easton, Pa., trekked about 26 miles over the next 24-plus hours.

She endured the ordeal by eating twigs from pine trees and drinking her own urine when she ran out of food and water, her twin sister told the Morning Call newspaper of Allentown, Pa.

Klein has wilderness survival training and consumed the foul liquid to avoid suffering hypothermia from eating snow, Kristen Haase said.

She eventually stumbled upon an entrance station to the national park, which is closed for the season, and searchers found her there Saturday afternoon.

Klein was curled up on a bed in a cabin, “too exhausted to even make a fire,” Driscoll said.

Hubby Eric Klein, 47, and son Isaac, meanwhile, had already been rescued Friday afternoon, after Eric summoned help by hiking to higher ground where he got cellphone service, Driscoll said.

Father and son were treated for exposure and released from a hospital in Kanab, Utah.

Karen Klein initially was taken there before being transferred to Dixie Regional Medical Center in St. George, Utah, for treatment of what Driscoll called “pretty severe cold hand injuries.”