Calculate state miles from a trip trace

Import the route actually recorded by your GPS or tracking system. This tool estimates miles by state and gives you an editable CSV allocation. Your trace stays in this browser.

Import a continuous trip

Choose GPX track data or GeoJSON LineString/MultiLineString in WGS84 longitude/latitude. Maximum 10 MB and 50,000 points; gaps over 2 km are refused. Each separate segment remains separate. This does not find a road route between addresses.

Choose your recorded route. No file is uploaded.

Which mileage task are you trying to complete?

  • You already have recorded travel: export an original GPX track or WGS84 GeoJSON line from a system you are authorized to use. Preserve the original file and check that the export contains the trip's recorded points, not just a proposed route. This importer reads coordinates; it does not verify all of a tracking system's required timestamps, vehicle or odometer fields.
  • You only have a start and destination: this tool cannot reconstruct the road actually driven. Keep your route and odometer evidence, use your system's jurisdiction report where available, and follow the distance-record instructions. A planned road route is a different input from recorded travel.
  • You want MPG or tax due: reconcile the jurisdiction distance and fuel records first, then use the diesel tax worksheet. Estimated total state miles do not establish taxable miles or a purchase credit.

In GPX, this importer needs recorded track segments and track points (trkseg/trkpt). A GPX route containing only proposed waypoints is not accepted. Export labels differ by device and service; consult that system's documentation instead of renaming an unrelated CSV or PDF to .gpx.

Try a fictional teaching file

Download the fictional GeoJSON teaching line, then select it in the file field above. It contains 101 synthetic points on a straight line across the Texas–Oklahoma boundary. It is not a recorded road trip and must never be included in actual return evidence.

The example should produce about 41.456 estimated miles, split between Texas and Oklahoma. The allocation depends on the simplified boundary used here. Compare the result's state rows with its total and inspect the downloaded CSV. The example has no real odometer, vehicle or purchase record and cannot establish taxable miles, MPG or tax due. Clear it before importing your own authorized trip file.

What the calculation measures

Distance is the sum of great-circle distances between consecutive recorded points, grouped using the U.S. Census 2025 cartographic state boundaries at 1:500,000. Segments are sampled at intervals no longer than about 100 meters for state allocation. This is an estimate of the recorded line, not an odometer reading or a certified IFTA tracking export.

Cartographic boundaries simplify coastlines and borders. GPS drift, missed bends, missing points and travel along state lines can change the allocation. All unmatched distance is shown as Unassigned; it is never silently removed or allocated to a nearby state. Alaska and Hawaii are labeled nonmembers. Canadian and other unsupported travel remains unassigned.

Reconcile before using a tax worksheet

Compare total estimated miles with opening/closing odometers and your original route evidence. Resolve gaps and boundary differences, retain the original trace, and document any correction. Do not count repeated trip totals twice. The CSV contains estimated total jurisdiction miles, not taxable miles or an exemption decision. Read the record-template instructions and record requirements before transferring supported totals into the fuel-tax calculator.

Route services and privacy

No geocoding or external route service is called by this page. Files are processed in memory and cleared on leaving or reloading; downloads remain on your device. A future routing integration must use a licensed service and preserve the distinction between a planned route and actual recorded travel.

Boundary source reviewed November 29, 2026. See the original Census boundary download. The IFTA Procedures Manual P540 controls the underlying evidence requirements; this calculator does not certify compliance with vehicle-tracking standards.