Microscopy tools · Image scale

Microscope scale bar length.

Calibrate from a stage micrometer photo, from the sensor and objective, or from how much of a ruler fills the frame. Get micrometres per pixel, the field width, and the exact pixel length of a scale bar.

Photomicrographers have been making scale bars by hand for years. In the photomacrography.net thread “Scale Bars, Part II,” Charles Krebs wrote that to make it simple he created “a spreadsheet that does all the necessary calculation,” fed by three numbers: recorded magnification, the sensor’s long dimension in millimetres, and the pixel count along it. This page is that calculation as a form, with the other two common routes alongside it, so you do not need the spreadsheet or its download link.

Short answer: Krebs’ Canon 350D has a 22.2 mm sensor edge with 3456 pixels, which is 6.42 µm per pixel. At his measured 21.2× recorded magnification for a 10× objective that is 0.303 µm per pixel, so a 100 µm scale bar is 330 pixels long.

Sources listed belowChecked 26 October 2026

Three ways to get micrometres per pixel

Everything on this page comes down to one number: how many micrometres of the specimen one pixel covers. A scale bar is then just the bar length in micrometres divided by that number. The three routes differ in what you already know.

From the sensor and the objective

Divide the sensor’s edge by its pixel count to get the pixel pitch in micrometres, then divide by the total magnification. The total is the objective multiplied by whatever the adapter or relay lens adds. That last factor is the one people forget: Krebs measured it at about 2.12× for his setup, which turns a 10× objective into 21.2× recorded magnification. If you do not know the adapter factor, use one of the other two routes.

From a ruler across the frame

Photograph a stage micrometer with the same setup and read how many millimetres fill the frame width. Krebs’ formula is recorded magnification = sensor dimension ÷ millimetres recorded. In his article a 2× objective showed about 5.25 mm across a 22.2 mm sensor, so 22.2 ÷ 5.25 = 4.23× recorded, and dividing by the objective’s 2× gives his 2.11× relay factor. Micrometres per pixel here is simply the millimetres recorded times 1000, divided by the pixel count.

From a measured distance

Open the stage micrometer photo in an image editor, measure how many pixels a known distance spans, and divide. A typical stage micrometer, as Evident Scientific describes it, is a slide with a scale of 1 mm and 100 graduations, so each division is 10 µm. Measure across as many divisions as you can, because a pixel of error matters less over a long span.

Calibrate every objective

Evident’s guide says you need to calibrate your microscope camera for each objective individually, because the magnifications differ. A university lab protocol from Boston University does the same, creating a named calibration for each camera and objective and checking it by photographing a ruler. If you resize or crop the exported picture, say so in the exported width field, and the scale is corrected.

Worked example

Using Krebs’ published figures: Canon 350D, 22.2 mm edge, 3456 pixels, so the pixel pitch is 22.2 × 1000 ÷ 3456 = 6.42 µm. With a 10× objective and his 2.12× relay factor the recorded magnification is 21.2×, so one pixel covers 6.42 ÷ 21.2 = 0.303 µm and a 100 µm bar is 100 ÷ 0.303 = 330 pixels. The full picture is 3456 × 0.303 = 1047 µm wide, so a bar of 200 µm (about a fifth of the width) is 660 pixels. If you export the picture at half size, 1728 pixels wide, each pixel covers twice as much, 0.606 µm, and the 100 µm bar becomes 165 pixels. The magnifications are Krebs’ own measurements for his camera, not ones you should reuse for yours.

Frequently asked questions

How long should a scale bar be in pixels?

Divide the bar length in micrometres by the micrometres per pixel. A 100 µm bar at 0.303 µm per pixel is 330 pixels. Round to a whole pixel in your editor.

What is recorded magnification?

The magnification at the sensor: sensor dimension divided by the millimetres of specimen (or ruler) that fill that dimension. It includes the objective and any adapter or relay lens, so it can differ a lot from the number printed on the objective.

Why not just use the objective’s magnification?

Because adapters and relay lenses change the scale. The objective number is only part of the total, and the sensor pixel pitch matters as well, so calibrating with a ruler is the reliable route.

Do I need to repeat the calibration for each objective?

Yes. Each objective gives a different micrometres-per-pixel value, so calibrate and record one value per objective, and again if you change the camera, adapter or exported size.

What if I resize the picture?

Enter the width of the exported picture. The tool scales micrometres per pixel by the sensor’s pixel count divided by that width, so the bar stays true.

What stage micrometer should I use?

A common one is a slide with 1 mm marked in 100 divisions of 10 µm. Any ruled slide with a known spacing works if you use its real spacing.

Sources and how it is calculated

Retrieved

Micrometres per pixel is pixel pitch divided by total magnification, or the ruler width in micrometres divided by pixels. The arithmetic is this page’s own, built on Krebs’ recorded-magnification formula; the example figures are his. Pages were read on 26 October 2026.

Runs entirely in your browser. Nothing you type is sent or stored. Not affiliated with any forum, software maker or publisher named on this page.

Calibrate, then check

After placing a bar, photograph a ruler with the same setup and compare. A scale bar that is wrong looks just as convincing as one that is right.

Advertisement
Advertisement