What a #%&@ loser!

Ousted White House communication boss Anthony Scaramucci doesn’t think he’ll land another West Wing gig, a source close to the situation told The Post — which means he’s likely going to have to pay up to $16 million in taxes on the proceeds he made from selling his hedge fund.

Under IRS conflict-of-interest rules, if a person sells an asset to take a White House job, they must obtain that job within 60 days of the sale.

They must then keep the job through two pay periods, according to a source, and place the proceeds of the sale in approved assets, including Treasury bonds.

The person then can defer the taxes as long as the proceeds remain in assets such as Treasuries, sources said.

The IRS rule is aimed at keeping wealthy persons from paying a tax penalty just for taking a public-sector job.

Scaramucci, often called the Mooch, was ousted as communications boss after only 10 days.

The Mooch and his partners sold SkyBridge Capital so the Wall Street vet-turned-Beltway insider would comply with conflict-of-interest rules.

The Mooch’s slice of the proceeds is about $80 million.

If he doesn’t land another White House gig, he will be on the hook for capital gains taxes — roughly 20 percent for someone in his tax bracket, or up to $16 million.

The sale of SkyBridge is still pending.

The Mooch is said to be not optimistic about landing a new White House job — despite rumors that President Trump will come to the aid of one of his most outspoken supporters.

“The rumor is Trump feels bad [about firing Scaramucci] and is going to give Anthony a job as ambassador to The Organization for Economic Cooperation and Development (OECD),” a source says. Such a job would be considered a White House job and qualify the Mooch for a tax deferment.

Scaramucci is said to be very interested if a new White House job offer is made, a second source said.

Scaramucci was ousted from his post by newly appointed Chief of Staff Gen. John Kelly just days after the Mooch went on an expletive-filled tirade against presidential adviser Steve Bannon and then-Chief of Staff Reince Priebus.

In January, Scaramucci, believing he was getting the job as assistant to the president for public engagement and intergovernmental affairs, agreed to sell his SkyBridge fund to Washington, DC-based RON Transatlantic and the US-based arm of China’s HNA Capital.

That White House position never materialized.

Scaramucci lawyer Eliot Berke told CNN on Tuesday that his client “is going to pay the capital gains taxes once the sale goes through.”

A spokesman for SkyBridge buyer HNA said, “The news about Anthony Scaramucci leaving his role as White House communications director has no impact on HNA’s commitment to closing the SkyBridge transaction as soon as possible. We fully expect it to move forward and there is no change from our hope that it will be closed by the end of the summer.”

SkyBridge said it, too, was working toward closing the deal — which is forecast to happen this summer.

When reached by The Post, Scaramucci declined comment.