HackMyIP
← back to sheets

How Accurate Is IP Geolocation? How It Works and Why It Is Often Wrong

~/sheets/how-ip-geolocation-works.md
1

The Short Answer

2

IP geolocation is very reliable at the country level, noticeably weaker at the region level, and frequently wrong at the city level. MaxMind, the largest geolocation database vendor, self-reports better than 99 percent accuracy for country, 55 to 80 percent for region, and 20 to 75 percent for city depending on the country. No IP database can see your street address, your apartment, or your name — it is a database lookup, not a GPS reading. Most pages ranking for this question are written by geolocation vendors grading their own homework; this guide reconciles what they actually publish, explains why your IP maps to the wrong place, and shows how to get a wrong location corrected. You can run your own IP through our lookup tool right now and compare the result to where you are actually sitting.

3

Quick Reference: How Accurate Is It Really?

4
5
6
7
8
9
10
11
12
13
14
15
LevelWhat the published data saysSource
CountryBetter than 99 percent correctMaxMind, self-published (checked July 2026)
Region / stateRoughly 55 to 80 percent, depending on the countryMaxMind, self-published
City (within 50 km)Roughly 20 to 75 percent by country; United States 62 percentMaxMind per-country accuracy table (checked July 2026)
City (within 10 km)Roughly 15 to 35 percentIndependent 2026 measurement study (ipapi.is)
Metro area (within 50 km)Roughly 50 to 75 percentSame independent study
Street addressNever. No IP database contains itEvery vendor agrees on this
16
17

These are point-in-time figures: the MaxMind numbers come from its own published accuracy tables as fetched in July 2026 and shift with database updates, and the independent study figures are that study's reported ranges, not universal constants. Treat any page that quotes a single flat number like "IP geolocation is 95 percent accurate" with suspicion — no such blanket figure exists, and marketing pages routinely claim city-level accuracy far above anything the database vendors themselves publish.

18

IP Geolocation Is a Database Lookup, Not GPS

19

When a website shows your city from your IP address, it is not reading a GPS signal. It is looking your IP up in a geolocation database that maps blocks of IP addresses to locations. The result is an educated estimate of where the IP block is registered or observed — not a precise fix on where you are sitting.

20

This is the key difference from the location your phone uses. The browser Geolocation API and mobile apps do device-side positioning: GPS satellites, Wi-Fi access-point triangulation, and cell towers, which can be accurate to meters — and they require your permission. IP geolocation is server-side: the website already has your IP from the connection itself, no permission needed, and the database estimate that comes back may be off by an entire city. When a weather site asks to use your location, that is the Geolocation API; when it silently defaults to the wrong town, that is your IP.

21

What Geolocation Can and Cannot Tell

22

IP geolocation is reliable at the country level — the registry records make the country almost always correct. It is much weaker at the city level, and it cannot identify your street address, apartment, or name. What it frequently returns is the location your ISP registered the address block to, which can be a different city entirely — sometimes the ISP regional hub hundreds of miles away. For what an IP does and does not expose overall, see what someone can do with your IP address.

23

How Geolocation Databases Are Built

24

Nothing inside an IP address encodes a location. Databases infer it from several signals layered together:

25

Registry allocation records. The five regional internet registries (AFRINIC, APNIC, ARIN, LACNIC, and RIPE NCC) publish who each IP block is allocated to, and in which country. This is why the country is almost always right — and why the city often defaults to wherever the block owner is registered.

26

Routing and latency measurements. Providers watch BGP routing announcements and run active latency measurements from probe servers around the world: if your IP answers in 3 milliseconds from Frankfurt, it is not in Australia. This narrows regions but rarely pins a city.

27

Self-published geofeeds. Since 2020 there is an actual standard for this: RFC 8805 lets a network operator publish a CSV mapping its IP prefixes to locations, and RFC 9632 (2024) standardizes how database vendors discover those files. Networks that publish geofeeds get located far more accurately — and a network owner whose ranges geolocate wrongly can fix it at the source this way.

28

User corrections. Every major vendor accepts correction reports (covered below), which feed back into future database releases on each vendor's own schedule.

29

Accuracy Depends on What Kind of IP You Have

30
31
32
33
34
35
36
37
38
39
40
41
Connection typeWhat geolocation typically showsWhy
Fixed broadband (cable, fiber, DSL)Best case — often your city or a nearby oneStable assignments give databases time to learn the block
Mobile / cellularOften a distant city — the carrier gateway, not youCarrier-grade NAT pools serve huge regions and reassign constantly
Datacenter / VPN / proxyThe server facility locationThe IP genuinely is there — the person behind it is not
Corporate networkCompany headquarters or a central officeBranch traffic often exits through one central gateway
Satellite internetA ground station, possibly in another stateTraffic enters the internet where the ground infrastructure is
Privacy relay (iCloud Private Relay class)A deliberately coarse regional locationThe relay is designed to hide your precise location
42
43

The mobile case deserves emphasis because it surprises people the most. Phone carriers put customers behind carrier-grade NAT, so thousands of subscribers share gateway IPs that cover a huge area. MaxMind's own accuracy page notes that a mobile IP may move between users who are hundreds of kilometers apart within minutes. If your phone shows the wrong city on cellular but the right one on Wi-Fi, this is why — nothing is broken.

44

Why Your IP Location Is Wrong

45

Several things throw geolocation off. ISP registration: the address block may be registered to the ISP head office, not your town. Mobile networks: phone carrier IPs route through regional gateways, so a cellular IP can place you in a city you have never visited. VPNs and proxies: if you use a VPN, geolocation shows the VPN server location, not yours — that is the whole point, and it is also how people move their apparent location on purpose. Dynamic reassignment: when your ISP rotates your address or buys address space from another region, databases lag behind the change — correction propagation is measured in weeks to months, and one hosting provider has reported individual corrections taking anywhere from a couple of weeks to nearly two years to reach every database. Different sites, different databases: websites buy geolocation from different vendors, so one site can place you correctly while another puts you three states away on the same day, with the same IP.

46

The Kansas Farm Problem: When the Pin Is a Default

47

The most famous illustration of what a geolocation pin really means is a farm near Potwin, Kansas. When a database knows an IP is in the United States but nothing more, it still has to return coordinates — and for years the industry default for "somewhere in the USA" was 38N 97W, a point that happened to sit on that farm. As journalist Kashmir Hill reported in 2016, roughly 600 million IP addresses resolved to that single property, and its residents spent years receiving angry visitors, police raids, and threats meant for whoever was actually behind those addresses. They sued MaxMind in August 2016; the case settled in 2017, and default points were moved into the middle of bodies of water where no one lives.

48

The lesson: a precise-looking latitude and longitude can be a country-level default in disguise. Coordinates from IP geolocation describe the center of an uncertainty area — never treat them as a physical address.

49

How to Fix a Wrong IP Location

50

First, check whether anything is actually fixable. If you are on mobile data, a VPN, or a corporate network, the "wrong" location is structural and no correction form will change it. If you are on home broadband and every site places you in the wrong city, the block your ISP assigned you is mislocated in one or more databases — that is correctable.

51

Correct it at the database vendors. Websites buy geolocation data from different providers, so fixing one database does not fix them all. MaxMind (whose GeoIP databases power a large share of sites) has a location correction form — note that it declines corrections for personal IPs that get reallocated frequently, because the fix would be stale within weeks. IPinfo runs its own corrections page, and most other vendors have an equivalent. Submit your IP or range plus the correct city; propagation into the products sites actually use takes days to months.

52

If Google itself shows the wrong city: Google search location is not just your IP — it blends device location, your home and work addresses, and past activity, and by design it only shows a general area (Google states the area is larger than 3 square kilometers and shared by at least 1,000 users). Its location support page explains how to update it; granting the browser location permission usually fixes it faster than any IP correction.

53

If you operate a network: publish a geofeed per RFC 8805 and reference it in your RIR records per RFC 9632. This is the authoritative fix — vendors consume geofeeds directly.

54

If you just want a different location: that is not a correction, that is a VPN. Connect through a server where you want to appear, then verify it worked with our VPN and proxy detection test — and check for DNS leaks and WebRTC leaks that can reveal your real IP anyway.

55

How Websites Use IP Geolocation

56

Sites use IP geolocation for content localization (language, currency), fraud checks (flagging a login from an unexpected country), regional licensing (streaming availability), and analytics. It is good enough for those coarse decisions precisely because it only needs country or region accuracy, not your exact location. It also feeds IP reputation scoring — a mismatch between your IP location and other signals is one of the things that gets an address flagged as a bot or VPN.

57

How to Check and Control Your Own Geolocation

58

See what is exposed by running our IP Lookup and viewing your current IP details — the same data is available from our free keyless API if you want to script it. Because different sites use different databases, it is worth checking your IP against more than one source before concluding anything; the spread between them is itself a useful reminder of how approximate this all is. If the reported location is too close for comfort, a VPN moves your apparent location to the server you connect through — verify it actually hides your real IP with our VPN/proxy detection test and check for DNS and WebRTC leaks that can reveal your true IP despite a VPN.

59

Frequently Asked Questions

60

How does IP geolocation work?

61

It works by looking your IP address up in a database that maps IP blocks to locations, built from internet registry allocation records, BGP routing data, latency measurements, self-published geofeeds (RFC 8805), and user corrections. It is a lookup, not a GPS reading, so it estimates where the address is registered rather than pinpointing where your device physically is.

62

How accurate is IP geolocation?

63

Very accurate at the country level and unreliable at the city level. MaxMind, the largest vendor, self-reports better than 99 percent for country, 55 to 80 percent for region, and 20 to 75 percent for city within 50 km depending on the country — 62 percent in the United States as of July 2026. An independent 2026 study measured roughly 15 to 35 percent within 10 km. No database can see your street address.

64

Why is my IP location wrong?

65

Common reasons are that the address block is registered to your ISP head office rather than your town, mobile carriers route through regional gateways, a VPN or proxy shows the server location instead of yours, or the database has not caught up after your ISP reassigned your address. Different websites also use different databases, so results vary site to site.

66

Why does my IP address say I am in another city?

67

Because the databases locate the address block, not you. Your ISP may have registered the block to a regional hub, your mobile carrier routes traffic through a gateway city that can be hundreds of kilometers away, or the block was recently moved and the databases are stale. On mobile data especially, the reported city is usually the carrier gateway, not where you are standing.

68

Can an IP address show my exact location?

69

No. An IP address cannot reveal your exact street address, apartment, or identity. It gives an approximate, often city-level estimate, and the precise-looking coordinates it returns are the center of an uncertainty area — sometimes just a country-level default point. Only your ISP can link an IP to a specific subscriber, and that normally requires a legal request such as a court order.

70

Can I correct or change my IP address location?

71

If your home broadband IP is mislocated, submit corrections to the database vendors — MaxMind and IPinfo both run correction forms, and fixing one database does not fix the others. Corrections take days to months to propagate, and vendors decline them for frequently reallocated personal IPs. If you just want to appear somewhere else, that is what a VPN does.

72

What is the difference between IP geolocation and GPS?

73

GPS and the browser Geolocation API do device-side positioning using satellites, Wi-Fi access points, and cell towers, can be accurate to meters, and require your permission. IP geolocation is a server-side database lookup that needs no permission and may be off by an entire city. A website that silently shows your town is using your IP; one that asks first is using the Geolocation API.

74

How do websites know my location from my IP?

75

They send your IP to a geolocation database and use the returned country or region for localization, fraud checks, regional licensing, and analytics. Because they only need coarse accuracy for those decisions, the database estimate is good enough even though it is not precise.

76
Last updated: July 6, 2026