How Accurate Is IP Geolocation? We Checked 11,449 Addresses Against Where They Really Are
Half of them landed within 15 km of the truth. One landed 15,642 km away. Both answers came back with the same confidence, and that is the part worth understanding.
A message that turns up in our inbox again and again is some version of “your site says I am in Frankfurt and I have never been to Frankfurt.” The person writing is nearly always right. We wanted to know how often that happens and by how many kilometers, so we stopped trading anecdotes and went looking for a few thousand addresses whose real location somebody had written down.
Finding addresses that come with an answer key
The hard part of testing geolocation is not the lookup. It is knowing where the address actually is. For that we used RIPE Atlas, a measurement network made of small probes that volunteers plug into their home routers, office networks and server racks. Each host tells the project where the probe sits, and that location is public, along with the address the probe connects from.
On November 17, 2026 there were 15,528 probes online. We threw a lot of them out. 2,812 carried a tag saying their location had been filled in automatically from an IP database, which would have meant grading a database against its own homework. Another 70 had a location the network itself flags as disputed, and 1,008 had no public address to look up. That left 11,637 probes with a hand-entered location, of which 11,449 had an IPv4 address we could place. They sit in 181 countries on 3,850 different networks.
For each one we asked the same location database that our IP lookup reads, took the coordinates it returned, and measured the straight-line distance over the globe to where the host says the probe is. Nothing else. No reverse DNS, no latency triangulation, no second opinion.
Most never visibly move. The ones that do tend to cross a country, or an ocean.
- within 25 km (912)
- 25 to 250 km (424)
- over 250 km (264)
The answer key is self-reported. Hosts type in a location, and some of them get it wrong or move house without updating it. The coordinates are also blurred by about a kilometer on purpose, so anything under 2 km is as close as this method can see.
The locations are public, which means any location database is free to learn from them, and some surely have. Treat our results as flattering. People who run measurement hardware for fun are also not a cross-section of the internet: 7,004 of the 11,449 are in Europe, and they are more likely than average to have a fixed line from a tidy network.
This is one database, the one behind our own API, on one day. It is not a comparison between providers and we are not claiming anyone else would do better or worse.
The median is 15 km. The average is 229.
Those two numbers describe the same test, and the gap between them is the whole story. Geolocation errors do not form a tidy bell around the right answer. 1,536 addresses (13.4 %) came back within a kilometer, which given the blurring means dead on. Nearly a third were within 5 km. Then the curve flattens and just keeps going: 423 addresses were more than 1,000 km out and 117 were more than 5,000. The record holder is a server in the United States that the database files under Singapore, 15,642 km from where it hums.
Drag the radius below. The dots are real errors from the test, laid out by how far off they were. The spacing is logarithmic, because on a linear scale everything interesting would be a smudge in the middle.
6,549 of 11,449 addresses were placed within 25 km of where they really are.
Show the numbers
| Within | IPv4 (11,449) | IPv6 (6,297) |
|---|---|---|
| 5 km | 31.8 % | 33.3 % |
| 10 km | 43.7 % | 46.2 % |
| 25 km | 57.2 % | 59 % |
| 50 km | 65.1 % | 66 % |
| 100 km | 72.2 % | 72.3 % |
| 250 km | 83.4 % | 82.3 % |
| 500 km | 92.1 % | 91.1 % |
| 1,000 km | 96.3 % | 95.1 % |
All 11,449 answers were labelled city-level. The one that missed by 15,642 km included.
That is the uncomfortable finding. The database never said “I only know the country” for a single address in this set. It returned a city and a pair of coordinates every time, and nothing in the record separates the 13.4 % that were perfect from the ones that were on the wrong continent. An error you can see coming is manageable. This kind you only discover when a customer writes in about Frankfurt.
The kind of line matters more than the place
Many hosts tag their probe with what it is plugged into, which let us split the results by connection type. The differences are large enough to see on a map. Below, each circle is the median error for one kind of connection, drawn to scale. Click anywhere to move the circles to a place you know.
Servers are easy. A machine in a rack does not move, its operator often publishes where its address blocks are deployed, and the median error for the 1,993 data-center probes was 7 km. That is also the group with the wildest misses, because a hosting company can move a block of addresses from Toronto to Singapore in an afternoon and the paperwork follows months later.
Home broadband is a coin flip at city level. Median 22 km across 4,354 probes, and only 51.5 % inside 25 km. Country was right 98.6 % of the time, the best of any group.
Phones and dishes are a different sport. The mobile median was 74 km and the satellite median 219 km. A phone’s traffic leaves the carrier’s network through one of a handful of gateways, and a satellite terminal’s leaves through a ground station that may be in the next country over. In both cases the address tells you where the gateway is. These two samples are small, 151 and 63 probes, so take the exact figures loosely. The direction is not in doubt. Probes whose hosts said they sit behind carrier-grade NAT, where hundreds of households share one public address, had a median of 59 km.
Then there is France
We expected accuracy to track wealth, or density, or how long a country has been online. It tracks none of them. It tracks how the big local networks hand out addresses.
Show the numbers
| Country | Probes | Median km | 75th pct km | ≤ 25 km | Right country |
|---|---|---|---|---|---|
| New Zealand | 106 | 269.0 | 518 | 22.6 % | 100 % |
| France | 852 | 143.6 | 396 | 34.9 % | 98.4 % |
| Italy | 290 | 71.2 | 245 | 38.3 % | 98.3 % |
| United Kingdom | 511 | 67.7 | 210 | 34.1 % | 98.2 % |
| Denmark | 88 | 38.4 | 152 | 46.6 % | 100 % |
| Belgium | 151 | 28.3 | 55 | 45 % | 96.7 % |
| Taiwan | 80 | 28.0 | 135 | 48.8 % | 96.2 % |
| Netherlands | 611 | 25.4 | 85 | 49.8 % | 94.9 % |
| Australia | 221 | 25.2 | 156 | 49.8 % | 100 % |
| Switzerland | 290 | 21.1 | 80 | 53.4 % | 98.3 % |
| Iran | 80 | 19.5 | 898 | 52.5 % | 97.5 % |
| Norway | 87 | 18.7 | 100 | 55.2 % | 100 % |
| India | 121 | 18.6 | 259 | 55.4 % | 95 % |
| South Africa | 115 | 18.1 | 475 | 57.4 % | 95.7 % |
| Japan | 217 | 16.8 | 158 | 56.7 % | 97.2 % |
| Germany | 1,507 | 15.2 | 160 | 55.7 % | 96.5 % |
| United States | 1,556 | 13.9 | 58 | 61.8 % | 98.3 % |
| Sweden | 194 | 12.9 | 122 | 61.3 % | 99 % |
| Portugal | 87 | 11.7 | 90 | 59.8 % | 98.9 % |
| Austria | 192 | 10.1 | 102 | 63 % | 97.4 % |
| Greece | 80 | 10.1 | 34 | 72.5 % | 100 % |
| Finland | 181 | 9.5 | 49 | 64.6 % | 96.7 % |
| Czechia | 221 | 9.3 | 82 | 64.7 % | 99.1 % |
| Spain | 218 | 9.2 | 133 | 65.1 % | 98.2 % |
| Ukraine | 121 | 7.8 | 344 | 66.1 % | 92.6 % |
| Singapore | 117 | 7.7 | 12 | 94.9 % | 94.9 % |
| Brazil | 102 | 7.6 | 19 | 79.4 % | 99 % |
| Poland | 194 | 7.1 | 63 | 65.5 % | 98.5 % |
| Russia | 419 | 6.7 | 24 | 76.4 % | 95.5 % |
| Canada | 262 | 6.6 | 33 | 69.8 % | 98.9 % |
| Indonesia | 94 | 6.1 | 53 | 63.8 % | 96.8 % |
| Kazakhstan | 97 | 4.9 | 824 | 59.8 % | 100 % |
France has 852 probes in the set, the third most of any country, and a median error of 144 km. For French home connections alone it is 230 km. Germany, next door: 15 km.
Most of that gap is one company. The largest French network in the set hosts 265 probes, and the database put just 14 % of them within 25 km. Its median error was 324 km, which is most of the way across the country. The largest German network hosts 296 probes, and 80 % of those were within 25 km, at a median of 7.8 km. Same technology, same decade, same database. One of them assigns addresses out of regional pools that stay put for years. The other, as far as the outside world can tell, deals them from a national deck.
New Zealand does worst of all at 269 km, with fewer than a quarter of its 106 probes inside 25 km. The United Kingdom (68 km) and Italy (71 km) are not far behind France. At the other end sit Kazakhstan (4.9 km), Canada (6.6 km), Russia (6.7 km) and Brazil (7.6 km). Sort the chart by “best first” and the top of the list is not the one anybody would have guessed.
Where the lost ones end up
2,873 addresses were placed in the right country but more than 100 km from home. They do not scatter. They pile up.
Frankfurt, Paris and London take 13.1 % of all the long misses between them. None of that is a coincidence. Frankfurt is where a great deal of German traffic meets the rest of the internet. Paris is where French networks are headquartered. When a database has an address block and no better clue, it files the block where the owner’s paperwork or the owner’s routers are, and for a national network both of those are in the big city.
The same picture explains most of what went wrong in this test, with different labels on the box:
- A regional gateway. A broadband provider terminates customers from a whole region on a few large routers. The address belongs to the router’s pool, and the pool is filed under the router’s city.
- Carrier-grade NAT. When a provider runs short of IPv4 addresses, it puts many households behind one. That one address now has several hundred correct locations and the database has to pick a single wrong one.
- A mobile core. A national carrier may have three or four exits to the internet. Your phone in a mountain village shares one with a phone in the capital.
- A ground station. Same idea, with the last hop going through orbit.
- A head office. Registry records list the organization that holds the block and its postal address. For a company with offices in forty cities, that says where the legal department sits.
- A sale. IPv4 addresses are bought, sold and leased now. A block that served Toronto last year can serve Singapore this year, and every database is some number of weeks behind. The 10,000 km misses in our set mostly look like this to us.
The 2.9 % in the wrong country
331 addresses were placed in a different country from the one their host reported. The median distance for those was 1,772 km, so these are mostly not border towns filed on the wrong side of a river. They are relocated servers and overseas territories.
| Really in | We said | Addresses |
|---|---|---|
| Réunion | France | 28 |
| Germany | United States | 13 |
| Germany | Finland | 12 |
| Netherlands | Germany | 8 |
| Ukraine | Russia | 8 |
| Russia | Netherlands | 7 |
| France | Germany | 7 |
| United States | Canada | 6 |
The top row is the best illustration of the head-office problem we have ever seen. Réunion is an island in the Indian Ocean, east of Madagascar. It is also, legally, a part of France, and its networks are run by French companies. Of the 68 probes there, the database put 28 in mainland France and 21 of those in Paris. That is a miss of about 9,369 km, to a place where the weather is noticeably different.
The Ukraine-to-Russia row is short, 8 addresses, but it is the one we would lose sleep over if we used country as a compliance control. Which is the practical point of this section: 97.1 % is a very good number for choosing a default language. It is a poor one for deciding whom the law lets you serve, because the 2.9 % are not random people. They are concentrated in exactly the places where borders are contested or administrative.
IPv6 does slightly better, which we did not expect
6,109 probes have both an IPv4 and an IPv6 address, which gives a clean comparison: same machine, same room, two lookups.
IPv6 won more often than it lost and has the lower median, 12.3 km against 15.9 km. Our best explanation is boring. IPv6 space is plentiful, so networks carve it up by region and leave it alone. Nobody is buying and selling it, and nobody needs to hide a neighborhood behind one address. The layout of the network still resembles the layout of the country.
It is not a clean win. When IPv6 is wrong it is more wrong: the 95th percentile is 985 km against 765 km for IPv4, and the right-country rate is a touch lower (96 % versus 96.6 %). There is simply less history to draw on.
What we would do with this
If you are building on IP location, ours or anyone’s, the numbers above suggest some rules.
Lean on country. It is right about 97 times in 100 and wrong in predictable places. Use it for language, currency, tax display and routing people to the nearest server. Keep a manual override somewhere visible, and do not make it the only gate on anything a regulator cares about.
Treat city as a guess you are allowed to make out loud. Pre-fill the nearest store, the weather, the shipping estimate. Then show the user what you assumed and let them change it in one tap. On our own lookup page the location carries the words “city-level estimate”. After running this test we think those words are working harder than we realized.
Never treat coordinates as a position. The latitude and longitude in a geolocation response are the center of whatever city the database chose. In this test 11,449 addresses mapped to only 6,502 distinct points. Sending a courier, a process server or an angry email to those coordinates will reach a town square.
Be careful with “location mismatch” as a fraud signal. A customer whose billing address is in Lyon and whose IP says Paris is, on this evidence, probably a customer in Lyon. A rule that fires on city disagreement will mostly catch French broadband subscribers and people on their phones.
Know what a precision field is telling you. Our API returns location.precision with the value city, region or country. It reports how specific the record is. It does not report how likely the record is to be right, and in this test every record said city. We added that field so that coordinates would not imply more than the data holds. It turns out a label can overstate things just as well as a decimal place can. The field is described in the API documentation; read it as “no finer than”.
Method, briefly. Ground truth: all RIPE Atlas probes connected on November 17, 2026 with a hand-entered location (11,637 after exclusions). Estimate: one lookup per address in the location database behind our API, no other signals. Error: great-circle distance between the two. “Right country” compares ISO country codes, so a territory with its own code counts as its own country. The probe list is public and the comparison takes a few minutes to run, so anyone can repeat this against any database, including ours next month.
If you only remember one figure, make it this one: 42.8 % of the addresses we tested were more than 25 km from where the database put them. If your product tells people what city they are in, about four in ten of them will need a way to say no.