InputTestHub

Bounding Box Calculator

Builds a north, south, east and west bounding box around a point at a given radius, and warns when it crosses the antimeridian.

Converters Nothing uploaded No sign-up Free, unlimited
Converters tool
Enter your figures and press Calculate.
In short A bounding box is the rectangle of latitude and longitude that contains a circle of a given radius, and it exists because databases can index a box far faster than they can compute a distance. The arithmetic has one trap that catches almost everyone: a degree of latitude is about 111 km everywhere, but a degree of longitude shrinks from 111 km at the equator to nothing at the poles. Using the same degree offset for both — which is the most common implementation — produces a box that is far too narrow near the equator or absurdly wide near the poles. The offsets have to be computed separately, using the cosine of the latitude for longitude. Two more failures are worth naming because they are silent. A box that crosses the antimeridian has a western edge numerically GREATER than its eastern edge, which breaks any query written as west < longitude < east; such a box has to be split in two at ±180°, and most software does not do it automatically. And a box that reaches a pole covers every longitude, so it stops being a rectangle at all. Finally, remember that the box is not the circle: its corners lie about 41% further from the centre than the radius, so filtering by box alone returns points outside your radius. The standard approach is box first for speed, then true distance to trim.

How to use the Bounding Box Calculator

  1. Enter the centre point and the radius.
  2. Read the north, south, east and west edges, or the ready-made bbox string.
  3. Filter by true distance afterwards if you need a circle rather than a box.

About the Bounding Box Calculator

A latitude and longitude bounding box around a point at a stated radius, with the antimeridian and pole cases flagged.

What people use it for

  • Building a fast geographic query before filtering by true distance.
  • Setting map bounds around a location.
  • Checking whether a search area crosses the antimeridian.

Details

Latitude offsetradius ÷ ~111 km, near enough constant everywhere
Longitude offsetdivided by the cosine of the latitude — this is the usual bug
bbox orderwest, south, east, north — GeoJSON and most APIs
Cornersabout 41% further out than the radius
Antimeridianwest becomes greater than east, and the query breaks
PrivacyEverything runs in your browser. No coordinate you enter is sent anywhere
Offsets are computed from the metres-per-degree at your latitude, so the box is as tight as it can be rather than using a global average.

Where this tool stops

Everything is computed from the WGS84 ellipsoid in your browser — no map service, no lookup and no network. Coordinates on an older datum such as ED50, NAD27 or a national grid will not agree with these figures, sometimes by hundreds of metres. Great-circle distances use a spherical earth of radius 6,371.0 km and differ from ellipsoidal distances by up to about 0.5%, which matters for surveying and not for anything else.

Frequently asked questions

Why is my bounding box the wrong shape?
Almost always because the same degree offset was used for latitude and longitude. A degree of longitude is only 111 km at the equator and shrinks with the cosine of the latitude, so at 60° it is half that and the box comes out half as wide as it should be.
What happens when the box crosses the antimeridian?
The western edge becomes numerically larger than the eastern edge, so a query of the form west < lon < east matches nothing. The box has to be split into two at ±180° and the results combined. This tool tells you when that has happened.
Is a bounding box the same as a radius search?
No, and treating it as one returns points you did not want. The corners of the box are about 41% further from the centre than the radius. The usual pattern is to use the box for a fast index lookup and then compute true distances to trim the results.
What order should the four numbers go in?
West, south, east, north is the GeoJSON and OpenStreetMap convention and the one this tool outputs. Some APIs want south, west, north, east instead — check, because both orders look plausible.
Is there a limit on how often I can use the Bounding Box Calculator?
Free, unlimited, and no email address required. You can use it a hundred times a day and nothing changes.
Is what I paste into the Bounding Box Calculator stored?
No. The Bounding Box Calculator runs entirely in your browser using JavaScript. Nothing is transmitted, logged or stored, which you can verify yourself in the Network tab of your browser's developer tools.
What is the Bounding Box Calculator used for?
The jobs it is built for: building a fast geographic query before filtering by true distance. Setting map bounds around a location. Checking whether a search area crosses the antimeridian. It is built for exactly those cases rather than being a general-purpose tool with this bolted on.
Where does the Bounding Box Calculator stop being reliable?
Everything is computed from the WGS84 ellipsoid in your browser — no map service, no lookup and no network. Coordinates on an older datum such as ED50, NAD27 or a national grid will not agree with these figures, sometimes by hundreds of metres. Great-circle distances use a spherical earth of radius 6,371.0 km and differ from ellipsoidal distances by up to about 0.5%, which matters for surveying and not for anything else. Knowing where a tool stops being trustworthy matters more than the cases where it works.
What are the key numbers for the Bounding Box Calculator?
Latitude offset is radius ÷ ~111 km, near enough constant everywhere. Longitude offset is divided by the cosine of the latitude — this is the usual bug. bbox order is west, south, east, north — GeoJSON and most APIs. These are printed on the page itself, so you do not have to take them on trust.
Can I rely on this for exact work?
The calculation runs in double precision and the result is shown to ten significant figures, so converting a value and converting it back returns the original. What is displayed is rounded for readability; what is copied is not.

Related converters tools

All 1079
01

Number Base Converter

Converts numbers between binary, octal, decimal, hexadecimal and any base from 2 to 36, in…

02

Roman Numeral Converter

Converts numbers to Roman numerals and Roman numerals back to numbers, from 1 to 3,999,999.

03

Shoe Size Converter

Converts shoe sizes between US, UK, EU, Japan and centimetres for men, women and children.

04

Ring Size Converter

Converts ring sizes between US, UK, EU and Japan systems and shows the matching inside…

07

Bra Size Converter

Converts bra sizes between UK, US, EU, France, Italy, Australia and Japan, or works the size…

09

Hat Size Converter

Converts head circumference to US, UK and EU hat sizes using the real formula: the size is the…

10

Glove Size Converter

Converts hand circumference to glove size and letter size for men and women. The glove size is…