Half came from neighbouring countries and north Africa, and a quarter from Europe and Turkey, says the Global Terrorism Index, drawn up by the Institute for Economics and Peace thinktank.
The flow of foreign fighters does not appear to be diminishing, with more than 7,000 arriving in the first six months of 2015.
Terrorism claimed the lives of 32,658 people last year, an 80% increase on 2013, it says. It calculates that the total economic cost amounted to an all-time high of $52.9bn (£34.8bn) last year.
Isis and Boko Haram were together responsible for 51% of all claimed terror-related fatalities in 2014, the analysis finds. Iraq continued to be the country most affected by terrorism, with 9,929 fatalities, the highest ever recorded in a single country.