How to make a scale bar
- Enter the distance the whole bar represents in Maximum value and its unit, for example 5 and km.
- Choose the number of segments. Five equal segments over 5 km give labels at 0, 1, 2, 3, 4 and 5 km.
- Pick a style, a line thickness and a colour that suit your map.
- Download the bar as SVG or PNG and place it on the map.
- Resize it in your document until its length matches the scale of the map. The table below shows how long it should be.
The length in pixels only sets the size of the file and how heavy the lines look next to the labels. The bar measures correctly once you give it the right length on the map itself.
What is a scale bar?
A scale bar, also called a graphic scale or bar scale, is a small ruler drawn on a map or drawing. Each segment stands for a fixed distance in reality. To measure a road or a wall, hold a strip of paper along it, mark both ends and compare the strip with the bar.
A numeric scale such as 1:50,000 gives the same information as a ratio: 1 cm on the map is 50,000 cm, or 500 m, on the ground. The ratio only holds while the map is printed at its original size. Enlarge the map by 20 percent and 1:50,000 is wrong, while the bar grows with the map and still measures correctly. Maps that will be copied, zoomed or shared on screen should carry a bar for this reason.
How long should the bar be on the map?
Divide the real distance by the scale number. At 1:50,000, a bar for 5 km is 500,000 cm ÷ 50,000 = 10 cm long. The table gives the length of a 1 km bar at common map scales.
| Map scale | 1 cm on the map | Length of a 1 km bar |
| 1:10,000 | 100 m | 10 cm |
| 1:25,000 | 250 m | 4 cm |
| 1:50,000 | 500 m | 2 cm |
| 1:100,000 | 1 km | 1 cm |
| 1:250,000 | 2.5 km | 4 mm |
If you do not know the scale of your map, measure a distance you know, such as a street between two crossings, and let the scale calculator work out the ratio. To turn a distance measured on a map into a real one, use the map distance calculator.
Choosing the distance and the segments
A bar is easiest to read when its labels are round numbers. Pick a total that divides evenly, such as 1, 2, 5, 10, 20, 50 or 100 of your unit, and split it into 4 or 5 segments. A bar about a quarter of the map width is long enough to measure with and leaves the map readable.
Equal segments suit most maps and plans. With the exponential division each segment is twice as long as the one before, so the first ones are short. It helps when readers need to measure short distances at one end of the bar and long distances at the other.
Scale bars on plans and images
Architects put a bar on plans that will be printed at different sizes, usually in metres or feet. In microscopy and macro photography, a bar in µm or mm shows how large the subject is, since the magnification of an image changes as soon as someone resizes it. For drawings made to a known ratio, the online scale ruler shows a ruler at that scale on your screen.
SVG or PNG?
SVG is a vector file. It stays sharp at any size and opens in Illustrator, Inkscape, Figma, QGIS layouts and recent versions of Word, so use it for print. The PNG file is twice the pixel size set in the generator and has a transparent background. Use it for slides, web pages and programs that do not accept SVG.