President Trump’s looming trade war will cost Harley-Davidson as much as $100 million a year — and lead to a shift of production outside the United States that could cost American jobs, the motorcycle maker said Monday.

Tariffs imposed by the Europeans on Milwaukee-based Harley-Davidson went into effect Friday, increasing from 6 percent to 31 percent and adding $2,200 to the cost of a US-made motorcycle.

But the company is not going to raise prices as a result, sparing consumers but dealing a blow to its own bottom line.

“Harley-Davidson believes the tremendous cost increase, if passed onto its dealers and retail customers, would have an immediate and lasting detrimental impact to its business in the region, reducing customer access to Harley-Davidson products and negatively impacting the sustainability of its dealers’ businesses,” a Harley-Davidson regulatory filing with the Securities and Exchange Commission said, Bloomberg reported.

To deal with the increases, Harley announced it would shift production of motorcycles for EU destinations from its US facilities to its international operations — a move that will take up to 18 months to implement.

“Harley-Davidson maintains a strong commitment to US-based manufacturing,” the filing said. “Increasing international production to alleviate the EU tariff burden is not the company’s preference, but represents the only sustainable option to … maintain a viable business in Europe.”

Trump later chided the company on Twitter.

“Surprised that Harley-Davidson, of all companies, would be the first to wave the White Flag. I fought hard for them and ultimately they will not pay tariffs selling into the E.U., which has hurt us badly on trade, down $151 Billion. Taxes just a Harley excuse – be patient! #MAGA,” he wrote.

Trump has repeatedly praised the company for building bikes in the US, and analysts noted the irony that the president’s policies could cost American jobs.

“A company that is as connected to America, and Americana, as Harley is probably going to be laying off US workers in favor of foreign workers and going to be losing money as a result of this,” James Hardiman, an analyst with Wedbush Securities, told Bloomberg. “There’s a lot of irony here, to put it mildly.”

Harley’s share of total sales to Europe last year was its highest since 2011.

The company — whose stock closed down just under 6 percent on Monday — didn’t specify which international plants will boost output for EU markets.

It was targeted because it’s in a red state that voted for Trump, and is also the home to House Speaker Paul Ryan. But neither Ryan nor Republican Gov. Scott Walker were critical of the trade war the president started by slapping steep tariffs on imported aluminum and steel on the EU and others.

A Harley rep did not respond to a request from The Post about potential job losses.