IP Geolocation Accuracy

The real numbers behind IP address location data

Advertisement

How Accurate Is IP Geolocation? The Real Numbers Behind IP Address Location Data

February 12, 2026 · 17 min read · Technology

MaxMind, the company behind one of the most widely used IP geolocation databases in the world, publishes a number that most people in the industry gloss over: their GeoIP2 product achieves 99.8% accuracy at the country level, but only about 66% at the city level for U.S. IP addresses within a 50-kilometer radius. That is a 34-percentage-point drop just by changing the question from "what country?" to "what city?" — and it gets worse from there depending on where in the world you are looking.

This gap between country-level and city-level accuracy is the single most misunderstood aspect of IP geolocation. Marketing pages from geolocation providers prominently display the 99%+ country number. Blog posts recycle it without context. The result is that developers, fraud analysts, and compliance teams build systems with assumptions about precision that the underlying data does not support.

This article breaks down what the accuracy numbers actually mean, where the data comes from, and what you can realistically expect from an IP geolocation lookup depending on the resolution you need, the region you are querying, and the type of IP address you are looking at. No inflated claims — just the published benchmarks from the major providers and the peer-reviewed research that tests them.

What "Accuracy" Actually Means in IP Geolocation

When someone asks "how accurate is IP geolocation?" the answer depends entirely on what level of geographic resolution they are asking about. There are four distinct levels, and accuracy drops dramatically as you move from coarse to fine.

99.8%
Country Level
55-80%
City Level
5-50 km
Coordinate Radius

Country level (99-99.8% accurate)

This is the resolution where IP geolocation genuinely works well. IP address blocks are allocated by Regional Internet Registries (RIRs) — ARIN for North America, RIPE NCC for Europe and the Middle East, APNIC for Asia-Pacific, AFRINIC for Africa, and LACNIC for Latin America. Each allocation is tied to a country. Since these registrations are public and well-maintained, determining what country an IP belongs to is a solved problem for the vast majority of addresses.

The remaining 0.2-1% error margin comes from edge cases: IP blocks that have been transferred between organizations in different countries, satellite internet users whose IP is registered to the ground station rather than their physical location, and VPN or proxy servers that route traffic through a different country.

Region/state level (70-85% accurate)

At the state or province level, accuracy begins to diverge. MaxMind estimates approximately 80% accuracy at the state level for U.S. IPs. The challenge here is that ISPs do not always register their IP allocations with state-level granularity, and some ISPs serve customers across multiple states from centralized infrastructure.

City level (50-80% accurate, depending on region)

This is where the numbers get uncomfortable. Even the best commercial databases achieve city-level accuracy of only 66% for U.S. IPs within a 50-kilometer radius, according to MaxMind's published testing. IP2Location reports over 75% city-level accuracy globally. DB-IP claims over 97% at the city level, though their measurement methodology and radius threshold differ.

The discrepancies between providers are not just marketing — they reflect genuinely different testing methodologies, different ground-truth datasets, and different definitions of "accurate." When one provider measures accuracy within a 25-kilometer radius and another uses 50 kilometers, the numbers are not directly comparable.

Postal code and coordinate level (unreliable)

Postal code accuracy is generally below 50%, and specific latitude/longitude coordinates from an IP lookup should be understood as a general area indicator, not a pinpoint. The coordinates typically resolve to a city center, an ISP facility, or a default location for that region. As we covered in our guide to IP location maps, the pin on a map represents the database's best estimate for the IP block — not where any specific person is sitting.

IP Geolocation Accuracy by Resolution Level Country 99.8% Region / State 70-85% City 50-80% Postal Code 20-40% Ranges reflect variation across providers, regions, and IP types. Based on published benchmarks from MaxMind, DB-IP, and IP2Location.
The question is not "how accurate is IP geolocation?" — it is "how accurate is IP geolocation at the resolution I need, in the region I care about, for the type of IP address I am looking at?" Those three variables change the answer dramatically.

Real Accuracy Benchmarks by Provider

The three major commercial IP geolocation database providers — MaxMind, DB-IP, and IP2Location — each publish accuracy data, but they use different testing methodologies, which makes direct comparison tricky. Here is what each provider publishes, along with what independent research says.

Provider Country Accuracy City Accuracy Measurement Method
MaxMind GeoIP2 99.8% ~66% (US, 50km) Known user IP/location pairs tested against database
DB-IP 99.99% >97% (claimed) Internal benchmark against proprietary ground-truth data
IP2Location >99.5% >75% Accuracy within 50 miles of true location
Digital Element (NetAcuity) 99.99% 97% Proprietary validation with ISP-confirmed data

Why the numbers differ so much

DB-IP's claimed 97%+ city-level accuracy versus MaxMind's 66% is not necessarily a contradiction. The differences come down to three factors:

What independent research says

Academic studies provide a more sobering picture. A deep-dive analysis published on arXiv that tested two commercial geolocation databases against a ground-truth dataset of over 2 billion samples found that while country-level geolocation was correct in most cases, at finer granularities — state, city, and postal code — at least 33%, 40%, 70%, and 80% of samples respectively failed to resolve to the correct administrative region. A 2023 study published in MDPI's Electronics journal found that a fusion approach combining multiple databases could achieve 94% city-level accuracy with 99.99% city coverage, but that was using combined sources rather than any single database.

Key takeaway for developers
Country level  → Trust it. Build on it. (99%+)
Region/state   → Mostly reliable, verify for edge cases. (70-85%)
City level     → Useful directional signal, not ground truth. (50-80%)
Postal code    → Do not make business decisions on this alone. (<50%)
Coordinates    → General area only. Never treat as a precise address.

Accuracy Breakdown by Region

Geography is the biggest variable in IP geolocation accuracy after resolution level. The difference between looking up an IP in Germany versus one in Nigeria is enormous, and it comes down to infrastructure density and ISP registration practices.

Region Country State/Region City (50km) Key Factors
United States 99%+ ~80% 60-72% Dense ISP infrastructure; MaxMind cites 66% city-level
Western Europe 99%+ 80-87% 65-80% Strong RIPE NCC registration data; compact geography
Japan / South Korea 99%+ 82-88% 70-85% Concentrated urban population; modern ISP networks
Australia / NZ 99%+ 75-82% 60-70% Urban IPs accurate; rural IPs often resolve to state capitals
Brazil 96-98% 65-75% 50-65% Large ISP service areas; high mobile usage with CGNAT
India 95-97% 60-70% 45-60% Massive mobile carrier pools; ISPs serve wide geographic areas
Sub-Saharan Africa 90-95% 50-65% 35-55% Many IPs registered to capital cities; sparse infrastructure outside metros
Middle East 96-99% 65-78% 50-70% Varies widely by country; UAE and Israel well-mapped, others less so
Southeast Asia 95-98% 60-72% 45-65% High mobile-first usage; CGNAT widespread among carriers
Latin America (excl. Brazil) 95-98% 60-72% 45-62% ISP consolidation means large IP pools per region

Why the gap exists

The accuracy disparity traces to three structural factors:

ISP infrastructure density. In the United States or Germany, ISPs serve relatively small geographic areas from local facilities. A Comcast node in Denver almost certainly serves Denver metro users. In contrast, an ISP in Kenya might serve a 500-kilometer radius from a single point of presence in Nairobi. The database maps the IP to Nairobi, but the actual user could be in Mombasa.

Registration practices. RIPE NCC (which covers Europe) requires detailed geographic annotations when ISPs register IP allocations. AFRINIC's registration data tends to be coarser, often listing only the country and capital city. This cascades into the geolocation databases that rely on this registration data as a foundation.

Mobile vs. fixed-line ratios. In many developing regions, a much higher percentage of internet access is mobile-only. Mobile carriers use CGNAT pools that serve wide areas, which inherently reduces geolocation accuracy. In Sub-Saharan Africa, mobile internet accounts for a significant majority of connections, while in Western Europe and Japan, fixed broadband remains common.

Advertisement

Factors That Affect Accuracy

Beyond geography and resolution level, several technical factors determine whether a specific IP lookup will be accurate or misleading.

Factors That Reduce IP Geolocation Accuracy IP Geolocation Accuracy Factors VPNs & Proxies ~23% of global users Show server location CGNAT Shared IPs across wide geographic areas Mobile Carriers Regional hub routing 40-65% city accuracy Corporate Networks Centralized egress shows HQ location Stale Database Data ISP reallocations take weeks to propagate Satellite Internet IP at ground station not user location IPv6 Immaturity Less data for IPv6 40-60% country accuracy

VPNs and proxy services

Approximately 22.9% of internet users worldwide used a VPN in 2024, according to data aggregated by multiple research firms. In the United States, that figure is higher — roughly 42% of Americans report having used a VPN. When a user connects through a VPN, the IP address seen by the destination server belongs to the VPN provider's server, not the user. The geolocation lookup correctly identifies where that server is, but it tells you nothing about where the user physically sits.

This is not a database error. It is an inherent limitation: IP geolocation maps network paths, not human beings. For fraud detection purposes, a lookup showing a VPN IP is actually useful information — it tells you the user is obscuring their location, which is itself a risk signal that tools like InfoSniper's IP reputation checker can flag.

Carrier-grade NAT (CGNAT)

IPv4 address exhaustion has forced ISPs worldwide to deploy CGNAT, which allows hundreds or thousands of customers to share a single public IP address. The geolocation database maps that IP to wherever the CGNAT device is located — typically at a regional point of presence. A user in a suburb 80 kilometers away will show the same IP and the same mapped location as someone sitting next to the CGNAT equipment.

CGNAT deployments have grown steadily. Research tracking CGNAT deployment found the number of observed deployments grew from 1,200 in 2014 to over 3,400 in 2016, with nearly 29% of those in mobile operator networks. The growth has continued since as IPv4 addresses become more scarce and expensive — trading at $35 to $60 per address as of early 2025.

Mobile vs. fixed-line connections

Mobile IPs are consistently less accurate than fixed-line residential IPs. Mobile carriers route traffic through regional hubs, and the IP address pool associated with a particular cell tower often covers a metropolitan area or larger. An IP lookup for a T-Mobile user in a Phoenix suburb might show "Phoenix" (close enough) or "Denver" (the regional routing hub — not close at all).

The difference is significant: city-level accuracy for fixed-line residential IPs in developed countries typically ranges from 70-85%, while mobile IPs in the same countries drop to 40-65%.

Corporate and cloud IP addresses

Large organizations route all employee traffic through centralized data centers. A company with headquarters in San Francisco and offices in five other cities might have all traffic exit through a San Francisco IP. Cloud-hosted applications and data center IPs present a different challenge: the IP maps to the data center's physical location, which may have no relationship to the end user.

If you look up an IP and it resolves to AWS us-east-1 in Virginia, that tells you where the server is, not where the person using it is. The ISP and AS number fields from a tool like InfoSniper help distinguish these cases — seeing "Amazon Technologies" as the ISP immediately tells you this is cloud infrastructure, not a residential connection.

Satellite internet

Services like Starlink present a unique challenge. The IP address is assigned to a ground station, which can be hundreds of kilometers from the user's actual location. A Starlink user in rural Montana might have their IP mapped to a ground station in Washington state. This is a growing edge case as satellite internet adoption increases in rural areas where traditional ISP infrastructure is sparse.

IPv4 vs. IPv6 Accuracy Differences

IPv6 geolocation is measurably less accurate than IPv4, and this gap matters as IPv6 adoption continues to grow.

Metric IPv4 IPv6 Why the Gap Exists
Country accuracy ~90-99% ~40-80% IPv6 databases are less mature
City accuracy 55-80% 30-55% Fewer ground-truth data points for IPv6
ISP identification 95%+ 85-95% IPv6 allocations are newer and less annotated
Database coverage Nearly complete Growing but gaps remain IPv6 address space is vastly larger

A research study comparing IPv4 and IPv6 geolocation accuracy found that IPv4 addresses achieved approximately 90% country-level accuracy while IPv6 addresses scored only 40-60% in some databases. The study also found that constraint-based geolocation (CBG) showed up to 30% larger average error distances for IPv6 compared to IPv4, with performance varying by region — European hosts performed best, while Asia-Pacific hosts performed worst.

Three factors drive the gap:

IPv6 geolocation accuracy is where IPv4 was a decade ago. The gap is narrowing, but if your application needs reliable city-level resolution and IPv6 is involved, treat the results with extra skepticism and cross-reference with other signals.

How Geolocation Databases Maintain and Improve Accuracy

Understanding how the databases are built explains why accuracy varies and what the providers are doing to improve it.

Data sources

Every major geolocation provider builds on a foundation of several data sources:

Update frequency

Commercial databases are updated on varying schedules:

The lag between an ISP reallocating IP addresses and the geolocation database reflecting the change is typically 1-4 weeks for major providers. Edge cases — particularly when small ISPs get acquired or merge networks — can persist for months.

How to report a geolocation correction
# MaxMind correction form:
https://www.maxmind.com/en/geoip-location-correction

# IP2Location correction:
https://www.ip2location.com/register-for-update

# InfoSniper correction:
https://www.infosniper.net/geoip-data-correction.php

If you manage IP ranges, publish a GeoFeed per RFC 8805 to
ensure all providers can access your geographic assignments.

When Accuracy Matters Most — and What Level You Actually Need

Different applications have different accuracy requirements. Mismatching the resolution you need to the resolution the data provides leads to either over-engineering or poor decisions.

Use Case Resolution Needed Reliability Recommendation
Content licensing / geo-restrictions Country High (99%+) IP geolocation works well here; supplement with payment data for edge cases
Regulatory compliance (GDPR, sanctions) Country High (99%+) Reliable for country-level; use multiple signals for borderline cases
Fraud scoring Country + city Moderate Use as one signal in multi-factor scoring; never the sole decision point
Visitor analytics Country + region Moderate-High Reliable for aggregate trends; individual lookups may be off at city level
Ad targeting Region + city Moderate Acceptable for broad targeting; expect 20-40% misses at city level
Security / incident response Country + ISP High Country and ISP identification are reliable; use bulk analysis for patterns
Local search / nearby stores Postal code / coords Low IP alone is insufficient; combine with GPS, Wi-Fi, or user input

Fraud detection: how accuracy affects decision-making

In fraud scoring, a geolocation mismatch between the billing address and the IP-derived location is a risk signal, not a verdict. A credit card billing address in Chicago paired with an IP mapping to Lagos is a strong signal. The same card with an IP mapping to Milwaukee (50 miles away) is noise — that could easily be CGNAT or a cell tower routing to a neighboring city.

The practical approach is to treat IP geolocation as one weighted input in a scoring model. Use country-level data with high confidence. Use city-level data to flag anomalies for review rather than for automated blocking. Always check whether the IP belongs to a known VPN or proxy service — that metadata is often more actionable than the geographic coordinates.

Important: Building automated systems that block transactions or deny access based solely on city-level IP geolocation will generate false positives at a rate of 20-40% in many regions. Always combine IP data with additional verification signals like device fingerprinting, behavioral analysis, and payment information.

Compliance: when country-level is enough (and when it is not)

For GDPR jurisdictional checks or OFAC sanctions screening, country-level resolution is typically sufficient and reliable enough. If you need to determine whether a user is in the EU or in a sanctioned country, IP geolocation is a reasonable first-pass filter at 99%+ accuracy.

The exception is border regions. A user physically in Windsor, Ontario (Canada) might have their IP routed through Detroit infrastructure and show as being in the United States. For compliance-critical decisions in border areas, supplement IP data with user-provided information.

How to Get Better Results from IP Geolocation Lookups

If you need to maximize the accuracy of your IP geolocation data, these practical strategies help.

1. Cross-reference multiple databases

Academic research consistently shows that using multiple geolocation databases together improves both accuracy and coverage. If MaxMind, DB-IP, and IP2Location all agree that an IP is in Berlin, your confidence is high. If they disagree, the country and region are likely correct but the city assignment is uncertain.

Tools like InfoSniper do this cross-referencing for you, combining multiple data sources to provide a consolidated result. You can also use our API for programmatic access when you need to process lookups at scale.

2. Use the ISP and AS data, not just coordinates

The ISP name and Autonomous System (AS) number returned with a geolocation lookup are often more reliable and more useful than the latitude/longitude. Knowing that an IP belongs to "Comcast Cable Communications" versus "Amazon Technologies" versus "NordVPN" immediately categorizes the connection type and tells you how much to trust the geographic coordinates.

The WHOIS lookup provides additional registration details that can help validate geolocation results, particularly for commercial and data center IPs.

3. Distinguish IP types before interpreting results

Residential broadband IPs are the most accurately geolocated. Mobile IPs are less accurate. Data center and cloud IPs tell you server location, not user location. VPN IPs tell you exit node location. Each type requires different interpretation:

4. Consider the confidence radius

MaxMind's GeoIP2 database includes an "accuracy radius" field that indicates the confidence level for each specific lookup. A result with an accuracy radius of 10 kilometers is much more reliable than one showing 500 kilometers. If your database provides this metadata, use it — it is the provider's own assessment of how much to trust the specific result.

5. Build for graceful degradation

Design your systems to work at multiple resolution levels. Use country-level data (reliable) for your primary logic. Use city-level data (moderate reliability) for optional enhancements. Never make hard decisions based on postal code or coordinate precision from IP geolocation alone.

Example: multi-level geolocation strategy
// Tier 1: Country-level decisions (high confidence)
if (ip_country === "sanctioned_country") → block

// Tier 2: Region-level enrichment (moderate confidence)
if (ip_region !== billing_region) → flag_for_review

// Tier 3: City-level signal (directional only)
if (ip_city !== billing_city) → add_risk_score_weight

// Never: hard block based on city or postal mismatch alone
How to Interpret an IP Geolocation Result Look Up IP Address Check ISP: Residential, Mobile, Cloud/Hosting, or VPN? Residential / Business City-level: 60-85% reliable Mobile Carrier City: 40-65% reliable Cloud / Hosting Shows server, not user VPN / Proxy Shows exit node location Trust country + city Trust country only Check AS / ISP data Check reputation data Use for geo decisions Flag city uncertainty Not end-user location User masking location

Test IP Geolocation Accuracy Yourself

Look up any IP address and see the geolocation result with country, city, ISP, AS number, and coordinates — plus compare results across multiple data sources.

Look Up an IP Address

Frequently Asked Questions

How accurate is IP geolocation at the country level?
Commercial IP geolocation databases achieve 99.5-99.8% accuracy at the country level. MaxMind reports 99.8% for their GeoIP2 products. The small error margin comes mainly from VPN users, satellite internet providers, and IP blocks that have been transferred between organizations in different countries without updated registration records.
Why is city-level IP geolocation so much less accurate than country-level?
Country-level accuracy benefits from how IP addresses are allocated: large blocks go to specific countries through Regional Internet Registries. City-level accuracy depends on finer-grained data about where ISPs deploy their infrastructure, and this data is harder to collect and maintain. ISPs frequently reassign IP blocks between cities, mobile carriers route through regional hubs, and CGNAT devices can serve users across wide geographic areas from a single IP address.
Is IPv6 geolocation less accurate than IPv4?
Yes. Research shows IPv4 addresses achieve approximately 90% country-level accuracy compared to 40-60% for IPv6 in some databases. The gap exists because IPv6 geolocation databases are newer and less mature, ISPs often allocate large IPv6 blocks without granular geographic annotations, and there are fewer ground-truth data points for calibrating IPv6 geolocation. The gap is narrowing as IPv6 adoption increases and databases improve their coverage.
Does using a VPN make IP geolocation inaccurate?
A VPN makes the geolocation result show the VPN server's location instead of the user's actual location. The geolocation lookup itself is technically accurate — it correctly identifies where that IP address is located. The disconnect is that the IP no longer represents the user's physical position. With approximately 23% of internet users worldwide using VPNs, this affects a significant portion of lookups. Tools like InfoSniper's IP reputation checker can identify known VPN providers to help you account for this.
What is the most accurate IP geolocation database?
No single database is consistently the most accurate across all regions and IP types. MaxMind GeoIP2, DB-IP, and IP2Location each perform differently depending on the country, ISP, and whether the IP is residential, mobile, or commercial. For best results, tools like InfoSniper cross-reference multiple data sources. Academic research consistently shows that using multiple databases together improves both coverage and accuracy compared to relying on any single provider.
How can I check the geolocation accuracy for a specific IP address?
Look up the IP on multiple geolocation tools and compare the results. If they all agree on the city, confidence is high. If they disagree, the country and region are likely correct but the city may be uncertain. InfoSniper's lookup tool shows the estimated location on a map along with an ISP name and AS number, which helps you assess how reliable the result is. You can also use the Bulk IP Upload tool to check multiple IPs at once. Residential IPs from major ISPs in developed countries tend to be the most accurately geolocated.

Sources

  1. MaxMind — "GeoIP2 City Accuracy" and accuracy comparison tool — maxmind.com
  2. MaxMind — "Geolocation Accuracy" knowledge base — support.maxmind.com
  3. DB-IP — "IP Geolocation Accuracy Benchmarks" — db-ip.com
  4. IP2Location — "IP Geolocation Data Accuracy" — ip2location.com
  5. Gharaibeh et al. — "A deep dive into the accuracy of IP Geolocation Databases" — arxiv.org
  6. Kester — "Comparing the Accuracy of IPv4 and IPv6 Geolocation Databases" — jjkester.nl
  7. MDPI Electronics — "Evaluation Method of IP Geolocation Database Based on City Delay Characteristics" (2023) — mdpi.com
  8. Richter et al. — "A Multi-perspective Analysis of Carrier-Grade NAT Deployment" — prichter.com
  9. Statista / aggregated research — "VPN Usage Statistics 2024" — statista.com
  10. Cloudflare — "One IP address, many users: detecting CGNAT to reduce collateral effects" — blog.cloudflare.com
  11. Livadariu et al. — "On the Accuracy of Country-Level IP Geolocation" (ANRW 2020) — dl.acm.org
  12. Fontugne et al. — "Geofeeds: Revolutionizing IP Geolocation or Illusionary Promises?" (2024) — hal.science