A celebrity-laden crowd packed the Richard Rodgers Theatre on Saturday night as Alexander Hamilton’s alter ego, Lin-Manuel Miranda, made his final appearance in “Hamilton,” Broadway’s biggest hit in years.

People who scored tickets to the musical about the nation’s first Treasury secretary said afterward that it was worth every dead president they spent.

Tiffany Lea Williams paid “scalper prices’’ 30 minutes before the show to see it for a second time. She wasn’t disappointed.

“It was fantastic. I wanted to see it with Lin one last time before he left,” she told The Post, which was founded by Hamilton. “It was more than worth what I paid for the ticket. It was a once-in-a-lifetime show.”

Benjamin Hernandez and Anna Ray of Houston couldn’t believe their luck when their $800 tickets wound up being for Miranda’s final appearance.

“Oh, my gosh, I can’t believe we got those tickets,” Hernandez said.

“Freaking unreal, we didn’t have any idea that it would be his last performance!” Ray added.

Hernandez says he felt regretful only once — when he saw that ticket prices shot up overnight to $2,800.

“We should have bought more, $2,800 was the low, and I joked about selling them,” he said.

Ray quipped that she told Hernandez he could sell his own ticket, and then she would go alone.

“You can never see his last performance again, but you can always make money,” she said.

After the show, Hernandez said he was glad he didn’t succumb to greed.

“I don’t feel that way anymore,’’ he said of missing out on a $2,000 profit. “It was worth $800, maybe more.”

At one point, tickets for the hip-hop show were advertised for as much as $8,000 on the resale market.

Miranda got a one-minute standing ovation on his first entrance in the opening number, “Alexander Hamilton.’’

After the show, Miranda waved to his fans waiting in the rain from a theater balcony overlooking the street and later from a theater window.

Among the celebrities in the audience were Secretary of State John Kerry and Jennifer Lopez.