As rumors mount about​ trouble in ​her marriage to Jay Z, ​ ​Beyoncé has released ​a remix of one of her songs — with new lyrics referencing her family’s notorious elevator dust-up.

The 32-year-old songbird raps in the ​remix of her “Flawless” ​duet with Nicki Minaj that “s- -t goes down’’ when you have so much money.

“We escalate up in this b- - -h like elevators,” Beyoncé says in the song, released on her website Saturday night.

“Of course, sometimes s- -t go down when there’s a billion dollars on an elevator.”

And just in case you missed the dollar amount, she repeats the line — adding a “cha-ching” sound.

The song is an ​otherwise self-centered ode to perfection, with Bey bragging, “I woke up like this. You can say what you want, I’m the s- -t.”

Beyonce had calmly stood by in May when her sister, singer Solange Knowles, began furiously flailing and kicking at Jay Z in an elevator at the Meatpacking District’s Standard Hotel during a Met Gala afterparty.

Rumors quickly swirled that Solange was confronting Jay Z over ​marital indiscretions.

The rumors have only picked up steam with reports that discord between the pair is threatening to cancel their ongoing On The Run Tour.

The Post revealed last week that Beyoncé has ​been ​apartment hunting on her own, and it reported Sunday that despite displays of affection on stage, the two stay in separate hotels on tour and arrive to venues separately.

Insiders say one of the pair’s issues is Jay Z’s controlling nature, with the rapper looking to call the shots even after a breakup.

“He doesn’t want Beyoncé sitting down with Barbara Walters or Oprah Winfrey pretending to be the victim,” a source said.

The two wed in 2008 and had a daughter, Blue Ivy, in 2012.

Jay Z’s estimated net worth is $550 million and Beyoncé’s is about $300 million.

Estimates put their combined worth at closer to $1 billion, adding credence to Beyoncé’s remix line.

The couple has four more US tour dates before a one-month hiatus. They are slated to finish in Paris with two shows, Sept. 12 and 13.