geoprimsField-grade geospatial math

Grid zone and 100 km square in MGRS

The grid zone designator and 100 km square identifier for a latitude and longitude, the first five characters of any MGRS reference there.

33XWG

The point is in grid zone 33X, 100 km square WG: references there begin 33XWG.

Grid zone designator
100 km square identifier
Provenance
Computed by
geodesy.grid-ref.grid-zone-lookup 1.0.0, core 0.1.0
Model
NGA MGRS over UTM and UPS: AA lettering, or AL on the legacy Clarke 1866 and Bessel 1841 ellipsoids
Accuracy
Exact: the zone, band, and square follow from the point's UTM or UPS coordinates
Notes
None
Cites
National Geospatial-Intelligence Agency, Military Grid Reference System, NGA.STND.0037; Karney, C. F. F., GeographicLib, GeographicLib MGRS and UTMUPS classes

Something look off?

Your values

Showing an example. Change anything.
More options 2
Run many at once from a CSV

Loading…

How we got thisFormula, worked example, sources, and proof

Model: NGA MGRS over UTM and UPS: AA lettering, or AL on the legacy Clarke 1866 and Bessel 1841 ellipsoids

Accuracy: Exact: the zone, band, and square follow from the point's UTM or UPS coordinates

When to use this: Use this to find which MGRS or USNG map square a place falls in: to label a map sheet, set up a GPS receiver's grid, or check that a reference someone gave is in the right area. Enter the latitude and longitude. The tool returns the grid zone designator, such as 17T, the 100 km square letters, such as NE, and the two together, which begin every reference in that square.

Limitations: Squares are cut on UTM or UPS grid lines, so a place near a zone or band edge can be in a different square than a nearby one, and Norway and Svalbard use the zone exceptions. Near the poles the designator is a single UPS letter. The lettering follows the datum: Clarke 1866 and Bessel 1841 use the older AL scheme. It gives the square, not a position within it.

Worked example: Longyearbyen, Svalbard. Source: NGA MGRS grid zones, including the Svalbard exception. It is golden test vector v001, and every build checks the tool still gives its answer within its tolerance.

You enter

Latitude
78.2232 deg
Longitude
15.6267 deg

You get

Grid zone and 100 km square
33XWG
Grid zone designator
33X
100 km square identifier
WG

Review: Not yet independently reviewed by a geodesist.

Last verified: 2026-09-18, when a maintainer last confirmed this tool's sources at the issuer. See the sources ledger.

Status: version 1.0.0, core 0.1.0. See this tool in the verification report.

Changes

Checked against: 21 golden test vectors (download the test vectors, each with its source and tolerance). See how results are checked and every source.

Sources

Terms

MGRS: Military Grid Reference System
UTM and UPS coordinates written as a zone, a latitude band, a two-letter 100 km square, and digits, like 17T NE 86309 77770. Source: NGA.STND.0037 MGRS

MGRS — Military Grid Reference System

UTM and UPS coordinates written as a zone, a latitude band, a two-letter 100 km square, and digits, like 17T NE 86309 77770.

Source: NGA.STND.0037 MGRS