T HE PRESIDENT did not mince his words. “We cannot continue to pay for the military protection of Europe while the NATO states are not paying their fair share and living off the fat of the land. We have been very generous to Europe and it is now time for us to look out for ourselves.” A tweet from Donald Trump? In fact the words were John F. Kennedy’s, speaking to his National Security Council in 1963. Complaints about the Europeans’ failure to spend enough on their own defence are almost as old as the alliance itself. But Mr Trump’s attacks have been angrier and more sustained. He links complaints about the perceived NATO rip-off with gripes about trade, where he thinks the European Union is “killing us”. “We pay for LARGE portions of other countries [sic] military protection,” he tweeted last November, “hundreds of billions of dollars, for the great privilege of losing hundreds of billions of dollars with these same countries on trade.”

The allies may not like the bullying (and could argue with the economics), but on the matter of military spending Mr Trump has a point. At their summit in Wales in 2014, NATO leaders agreed to a guideline of spending no less than 2% of national GDP on defence, of which at least 20% should go on major equipment, including research and development. At the time only three countries met the 2% target; all the rest pledged to “move towards” it by 2024.

Now eight countries more or less pass the 2% test, and 15 meet the 20% target for major equipment. Taken together, the 2018 defence budgets of NATO ’s European members would have needed to be $102bn bigger (an extra 38%) to reach 2% of GDP , according to the International Institute for Strategic Studies ( IISS ). Still, their spending has been rising significantly since 2015. At the World Economic Forum in Davos in January, Mr Stoltenberg said that since 2016 members other than the United States had spent an extra $41bn in real terms and that, based on their national plans, by the end of 2020 the figure would be $100bn. If his remarks were designed to catch Mr Trump’s attention, it worked. “Now we have secured more than $100bn of increase in defence spending from NATO allies,” the president boasted a couple of weeks later in his state-of-the-union speech. “They said it couldn’t be done.”

“You should note that Vladimir Putin sees that increase,” says Mr Pompeo. But he also stresses that “there remains tremendous work to be done.” It is not even clear that Mr Trump will be satisfied with 2%. At the Brussels summit last year he caused a stir by mentioning a figure of 4% of GDP . (The United States spends 3.5%, though this pays not just for the territory covered by NATO but for America’s global role; the IISS calculates that only 5.6% of its defence outlays go directly on Europe, a figure that leaves out its nuclear umbrella and the reinforcements it would send in a crisis.) Whatever the aim, it is the big countries that count, and several of these fall woefully short of 2%, including Canada, Italy and Spain (see chart). But the most notable laggard is Germany, which has the largest economy.

Germany spends just 1.24% of its GDP on defence. It has promised only that the share will rise to 1.5% by 2025. Even that may be optimistic, since the spending is not “plumbed in” to actual budget plans, notes Claudia Major of SWP , a think-tank in Berlin. She expects the number to be 1.3% by 2024. The Germans have lots of excuses. A coalition government makes it hard to agree on higher defence spending. Germany’s economy is so large that even a modest increase in the share of GDP going on defence translates into a lot more money. The country hosts facilities that are important for America’s wider role, including its Africa Command in Stuttgart and a state-of-the-art military hospital near Landstuhl where Americans wounded in Afghanistan and Iraq are treated. Besides, the 2% target is a crude one, measuring input not output, so it should not be taken too literally.

You cannot be serious

Yet it is what Germany signed up to in 2014, and it does need to spend more. Last year’s annual report to the federal parliament on the state of the country’s armed forces was devastating. It pointed to “major gaps in personnel and materiel in all areas of the Bundeswehr”. All six of its submarines were out of action. At times not one of its 14 Airbus A 400 M transport planes was flying. This year’s report was scarcely better, urging “immediate action”. The contingent that took part in the recent Trident Juncture exercise had to plunder all sorts of gear from other units, according to Julie Smith, an American expert on transatlantic security currently at the Robert Bosch Academy in Berlin. “It’s just hard to fathom how it got this bad, for a country of its size and resources,” she says.

Another puzzle is Germany’s embrace of Nord Stream 2, a pipeline that by the end of this year is due to bring it Russian gas. Because this bypasses Ukraine, it leaves that country open to pressure from Russia. Mr Trump says it will also make Germany “a captive of Russia”. The Germans suspect that his true motive is to sell them American gas, but the project has many other critics.

Despite Russia’s deployment in Kaliningrad of nuclear-capable missiles that can reach Berlin in less than five minutes, Germans do not seem to feel unduly threatened. As Jan Techau of the German Marshall Fund in Berlin puts it: “We have exactly the kind of armed forces we want: basically unusable.”

What can be done? Mr Trump’s ire is not the best incentive for Germany to tackle its gaps in military spending: only 10% of Germans are confident that he will do the right thing in world affairs, according to Pew Research Centre. But politicians could do more to explain the need for extra resources, and they could be more creative, tackling problems of civilian infrastructure that also pose problems for military mobility. Germany’s rail system is “completely inadequate” for moving troops at scale, says Ben Hodges of CEPA . “We don’t need more German tanks, we need more German trains.” Counting such investment could help nudge Germany towards 2%.

One way to make European defence spending go further would be to improve collaboration between member countries, cutting duplication and reaping economies of scale. Angela Merkel, the German chancellor, has asked why Europe needs 160 weapons systems when America has 50 or 60, not to mention all the replication of training and support staff across the continent. Initiatives to do better are at last under way. One, called permanent structured co-operation, or PESCO , aims to attract commitments to projects identified in a Co-ordinated Annual Review on Defence, or CARD .