Latitude comes first in the most widely used convention. When you see a coordinate pair written as (40.7128, -74.0060) for New York City, the first number is the latitude (how far north or south) and the second is the longitude (how far east or west). This “lat, long” order dominates geography, navigation, and everyday mapping, but it is not universal, and the exceptions trip people up constantly.
The Standard Convention and Why It Exists
The latitude-first convention has deep roots. For at least two thousand years, navigators could determine their latitude relatively easily by measuring the angle of Polaris (the North Star) above the horizon. Early Arab navigators used their fingers held at arm’s length to gauge this angle, and later refined the technique with a tool called a kamal, a cord with knots tied at regular intervals that could measure the elevation of Polaris with surprising accuracy.1arXiv. Polaris: The Mathematics of Navigation and the Shape of the Earth – Section: 2 The First Empirical Law: Latitude Is Elevation A sailor who knew the latitude of a destination could simply sail north or south until the star reached the right height, then head east or west until land appeared. Latitude was the first coordinate navigators could reliably pin down, and so it earned the first position in the pair.
Longitude, by contrast, was a nightmare to measure at sea for centuries. Determining how far east or west you were required knowing the precise time difference between your location and a reference point, which in turn demanded an accurate clock that could survive the pitching and temperature swings of an ocean voyage. The problem was so acute that major maritime nations offered enormous prizes for a workable solution. Spain offered 1,000 crowns, the Netherlands offered 10,000 florins, and in 1714 the British Board of Longitude put up £20,000, a fortune by the standards of the era. It took John Harrison nearly fifty years of work before he finally received the full British prize in 1773, having built a series of increasingly precise marine timekeepers that could hold their accuracy at sea.2Endeavour. John Harrison: inventor of the precision timekeeper Because longitude arrived later both historically and practically, it naturally settled into the second slot.
Where the Order Flips
If every system agreed on latitude first, nobody would need to search for the answer. The confusion exists because several important modern standards reverse the order to longitude first. The most consequential is GeoJSON, the format used widely in web mapping and geographic data exchange. GeoJSON stores coordinates as [longitude, latitude], putting the east-west value first. The reasoning is mathematical rather than navigational: in a standard Cartesian coordinate system, the x-axis (horizontal) comes before the y-axis (vertical). Since longitude maps onto the horizontal axis and latitude onto the vertical, GeoJSON follows the (x, y) convention of mathematics.
KML, the format originally developed for Google Earth, also uses longitude first. So does the Well-Known Text (WKT) format common in geographic information systems. If you work with spatial databases like PostGIS, the default geometry functions expect longitude before latitude. This means that a developer pulling coordinates from one system and plugging them into another can easily swap the values and end up placing a point in the wrong hemisphere or on the wrong continent entirely.
Google Maps itself adds a subtle layer of confusion. When you type coordinates into the Google Maps search bar, the expected format is latitude, longitude. But when you use the Google Maps JavaScript API to create a LatLng object, you also pass latitude first, which is consistent. However, if you export data from Google Maps in KML format, the underlying file stores them longitude first. The same company, the same product ecosystem, two different orders depending on whether you are a casual user or a developer reading the raw file.
How the Major Systems Line Up
Because there is no single universal standard, it helps to know where the main tools and formats fall.
- Latitude first: ISO 6709 (the international standard for geographic point locations), Google Maps search, Apple Maps, most GPS devices, aviation and maritime navigation, the coordinate displays on most consumer apps, and the traditional geographic convention used in atlases and textbooks.
- Longitude first: GeoJSON, KML/KMZ, WKT, many GIS database functions, and some programming libraries that follow mathematical (x, y) convention.
ISO 6709 is worth singling out. It is the formal international standard published by the International Organization for Standardization that specifies how to represent geographic coordinates in data exchange. It mandates latitude before longitude. When people say “the standard order is lat, long,” this is the standard they are invoking, whether they know it or not. GeoJSON’s longitude-first approach is a deliberate departure from ISO 6709, chosen for compatibility with mathematical norms rather than geographic ones.
What Happens When You Get It Wrong
Swapping latitude and longitude does not always produce an obvious error, which makes it dangerous. If you accidentally reverse the coordinates for a point near the equator and near the prime meridian, say somewhere in the Gulf of Guinea, both values might be small positive numbers, and the swapped pair could still land on a plausible-looking spot on the map. You would have no visual cue that anything was wrong.
For locations far from the equator or far from the prime meridian, a swap is more likely to produce coordinates that land in the ocean or on the wrong continent. New York’s coordinates are roughly 40.7 latitude, -74.0 longitude. Reverse them and you get a point at 74 degrees south, 40.7 degrees west, which is somewhere in the Southern Ocean near Antarctica. That kind of swap is easy to catch. But consider a city like Nairobi, at roughly -1.3 latitude, 36.8 longitude. Swap those and you land at 36.8 north, -1.3 west, which is a spot in the Mediterranean Sea off the coast of Algeria. Someone unfamiliar with Nairobi’s location might not immediately realize the plotted point is wrong, especially when looking at a zoomed-out map.
In software systems that ingest thousands or millions of coordinate pairs, a systematic swap can go undetected for a surprisingly long time if nobody is visually spot-checking the results. Entire datasets have been published with the order reversed, and downstream users who assumed one convention when the data was encoded in the other have built analyses on incorrectly placed points.
Quick Ways to Tell Which Is Which
If you are staring at a pair of coordinates and cannot remember the order, the values themselves give you a clue. Latitude ranges from -90 to +90 (south pole to north pole). Longitude ranges from -180 to +180 (or 0 to 360 in some systems). So if one of the two numbers has an absolute value greater than 90, that number must be the longitude. It physically cannot be a latitude. A coordinate pair like (51.5, -0.1) could theoretically be either order since both values fall within the -90 to +90 range, but a pair like (33.9, -118.4) removes all ambiguity: -118.4 exceeds 90, so it is the longitude, and the format is latitude first.
This trick fails only when both values happen to be between -90 and +90, which occurs for locations in roughly the central band of longitude values. In those cases, you need to check the documentation of whatever system generated the coordinates, or cross-reference against a known map.
The Alphabet and Memory Tricks
People have come up with various mnemonics. The simplest is alphabetical: L-A-T comes before L-O-N in the dictionary, so latitude comes first. Another approach notes that latitude is associated with “flat” horizontal lines on a globe (the parallels), while longitude lines run vertically (the meridians), and if you think of reading a graph, you go across the horizontal axis first. That analogy actually supports the longitude-first camp, since the horizontal axis is x and comes first in (x, y) notation, which is precisely why the two conventions disagree.
The most reliable memory aid might be the most obvious one: latitude tells you how far north or south you are, and in everyday speech people tend to say “north-south” before “east-west.” The compass rose on old maps typically placed north at the top, reinforcing the primacy of the north-south dimension. When someone asks “where is it?”, the instinctive first piece of information is how high or low on the globe, followed by how far left or right. That cognitive order mirrors the geographic convention.
Degrees, Minutes, Seconds Versus Decimal Degrees
The lat-vs-long ordering question often arrives alongside confusion about coordinate formats. The traditional notation writes coordinates in degrees, minutes, and seconds, like 40° 42′ 46″ N, 74° 0′ 22″ W. The decimal degree format writes the same location as 40.7128, -74.0061. Both formats follow the same latitude-first convention in geography, but the way they encode direction differs. In degrees-minutes-seconds, the hemisphere is indicated by a letter: N or S for latitude, E or W for longitude. In decimal degrees, the sign does the work: positive latitude is north, negative is south; positive longitude is east, negative is west.
This matters because some systems strip the sign or the hemisphere letter during data processing. If a coordinate pair arrives as two bare positive numbers with no labels, you need the convention to tell you which is latitude and which is longitude, and you need additional context (like a stated hemisphere or a known geographic region) to determine sign. Government and scientific datasets usually include metadata specifying both the order and the sign convention, but casual data sources like spreadsheets shared between colleagues often do not.
Aviation and Maritime Conventions
Pilots and sailors follow a strictly latitude-first convention, and for them the stakes of getting it wrong are immediate and physical. An aviation waypoint reported in the wrong order could put a flight plan hundreds or thousands of miles off course. The International Civil Aviation Organization (ICAO) mandates latitude before longitude in all its documentation. Maritime charts follow the same rule. When a ship radios its position, latitude is stated first.
Within these fields, latitude is often spoken and written without decimal degrees. A pilot might report position as “North four zero degrees, four two minutes” before giving the longitude. The convention is so ingrained that reversing the order in a radio communication would immediately sound wrong to a trained listener, much like hearing someone say their street address before their country. The ordering is part of the professional grammar of navigation, inherited directly from the centuries of practice during which latitude was the only coordinate a sailor could determine with confidence.1arXiv. Polaris: The Mathematics of Navigation and the Shape of the Earth – Section: 2 The First Empirical Law: Latitude Is Elevation
Why the Disagreement Persists
You might expect that at some point, everyone would just pick one order and stick with it. The persistence of the split comes down to two communities with different foundational assumptions. Geographers, navigators, and cartographers think in terms of Earth coordinates where the north-south position (latitude) is primary. Mathematicians and computer scientists think in terms of abstract coordinate planes where the x-axis (horizontal, analogous to longitude) comes first. Neither group is wrong within its own framework, and neither has enough leverage to force the other to switch.
Attempts at standardization have made things marginally better. ISO 6709 provides a clear official answer: latitude first. But ISO standards are voluntary, and the developers who designed GeoJSON chose mathematical consistency over geographic tradition. Since GeoJSON became the de facto standard for web-based geospatial data in the 2010s, the longitude-first convention gained a massive user base overnight. Now both conventions are deeply entrenched in production systems, and switching either one would break enormous amounts of existing code and data.
The practical result is that anyone working with geographic coordinates across systems needs to check the documentation every single time. There is no safe assumption. Even within a single organization, different teams might use different tools with different conventions. The “which comes first” question is not just a matter of trivia; it is a live source of bugs, misplotted data, and occasional real-world confusion that shows no sign of resolving itself anytime soon.
Coordinate Reference Systems and the Zero Lines
Both latitude and longitude are measured relative to agreed-upon reference lines. For latitude, the reference is the equator, the imaginary circle around the middle of the Earth at zero degrees. Everything north of the equator is positive latitude (or labeled N), and everything south is negative (or labeled S). For longitude, the reference is the prime meridian, which runs through Greenwich, England, at zero degrees. East of Greenwich is positive longitude (or labeled E), and west is negative (or labeled W).
The choice of Greenwich as the zero line for longitude is itself a historical artifact. Different countries used different prime meridians for centuries: France used Paris, Spain used Cadiz, and various other nations picked their own reference points. It was not until 1884, at the International Meridian Conference in Washington, D.C., that Greenwich was adopted as the international standard, and even then France abstained from the vote and continued using the Paris meridian in some contexts for decades afterward. The equator, by contrast, is a physical feature of the Earth’s geometry, so there was never any argument about where latitude’s zero line should go. This asymmetry reinforces the sense that latitude is the more “natural” coordinate and helps explain why it historically took the lead position.
Modern coordinate reference systems add another layer that most casual users never see. The coordinates you get from a smartphone GPS are typically in a system called WGS 84, which defines not just the zero lines but the precise shape of the Earth’s surface used for calculations. Different reference systems can shift the same physical location by tens or even hundreds of meters, which matters for surveying and engineering but is invisible at the zoom level most people use for everyday navigation. Regardless of which reference system is in play, though, the latitude-first convention remains the default for geographic contexts and WGS 84 data.