← Browse all tools

Measure an object using a known reference

Image scale calibration calculator

A ruler or known-size reference in a photo can establish its measurement scale. Enter the reference’s real length, its length in image pixels and the pixel length of the object you want to measure.

Enter your values

Result

Results are based only on the inputs and assumptions shown here. Nothing you enter is sent or saved.

Formula: scale = reference pixels ÷ reference inches; object inches = object pixels ÷ scale; millimeters = inches × 25.4

Worked example

A 2 in reference spanning 800 px establishes 400 px per inch of the photographed scene. An object spanning 350 px is therefore estimated at 0.875 in, or 22.225 mm.

Measure both lengths in the same image

Use a pixel measurement tool, such as ImageJ’s line measurement, on the original image. Screen zoom is not a new physical scale. If the image is resized, measure both reference and object again in that resized image.

Keep reference and object in the same plane

This simple ratio assumes a uniform scale: a flat subject viewed squarely, with the reference beside it. Perspective, lens distortion and objects closer to the camera can invalidate that assumption. It is an estimate, not a precision inspection or medical measurement.

Scene scale differs from print PPI

The reported pixels per inch refer to real distance in the photographed scene. They do not specify how large the image should print. For printed size, use the main converter with the intended print PPI instead.

Explore the related calculation

For a different starting point, try the scan resolution calculator or return to the main calculator. Browse the complete tool directory for this site.

Reference and corrections

The definitions and assumptions above follow these sources; the examples and calculator arithmetic are original to this page.

Found a problem? Email contact@pixelstoinches.org.