Counting guides

How to measure an object from a photo

You can get a usable size from a photo if you include something of known size in the same shot and keep the camera square to the object. Here is how the reference method works, a worked example, and when a photo measurement is not good enough.

A small wooden board lying flat on a grey table with a plain card placed beside it as a size reference
Illustrative image created for this guide.

The short answer

To measure an object from a photo, place something of known size right next to it, on the same flat surface, and photograph both straight on from above or from the front. Then compare the two in the image: if the reference is 100 pixels wide and the object is 400 pixels wide, the object is about four times the reference. A bank card, a coin of known diameter or a ruler laid flat all work as references.

This gives a useful estimate, often good enough to check whether something fits, compare two items or note a rough size for a record. It is not a replacement for a tape measure when the size really matters, because angle, distance and lens distortion all bend the result.

The same idea works for height, depth and area, and it works with photos you already have, as long as something of known size appears in the same plane as the object. The rest of this guide explains why the reference matters, how to set up the shot and how to check the result.

Why a photo does not show true size on its own

A photo has no built-in scale. The same coin can fill the frame or be a dot in the corner depending on how far away the camera is. Without something of known size in the picture, there is no way to turn pixels into millimetres or inches.

Perspective adds a second problem. Things closer to the camera look bigger than things farther away, so if the object and the reference are at different distances, the comparison is off. The same happens when you shoot at an angle: the near end of a board looks wider than the far end, and a circle becomes an oval.

Phone lenses also bend the picture slightly, especially near the edges of a wide shot. Straight lines curve a little and objects at the edges are stretched. Keeping the object and the reference near the centre of the frame reduces this.

What you need

You only need a few simple things:

  • A reference object of known size, such as a bank card, a coin whose diameter you have checked, or a ruler.
  • A flat surface where the object and the reference can lie side by side.
  • Even light, without strong shadows that hide the edges.
  • A phone camera and a way to read pixel distances, such as a photo editor or an app that shows measurements.
  • A calculator, or a few seconds of mental arithmetic.

How to measure from a photo, step by step

Follow this order for the most reliable estimate:

  • Lay the object and the reference flat, side by side, on the same surface and at the same height.
  • Hold the phone parallel to the surface, directly above or directly in front, with both items near the centre of the frame.
  • Step back slightly and zoom a little rather than shooting very close with the wide lens, to reduce distortion.
  • Take the photo and check that both edges of the object and the reference are sharp.
  • Measure the reference and the object in pixels along the same direction.
  • Divide the object’s pixels by the reference’s pixels and multiply by the reference’s real size.
  • Repeat with a second photo, ideally with the reference on the other side, and compare the two results.

A worked example

Say you want to know the length of a wooden board without a tape measure to hand. You lay it on a table with a standard bank card next to it. A bank card of the common size is about 85.6 millimetres wide. You photograph both from directly above, open the photo in an editor and find that the card is 214 pixels wide and the board is 1,250 pixels long.

Dividing 1,250 by 214 gives about 5.84, and 5.84 times 85.6 millimetres is about 500 millimetres. So the board is roughly 50 centimetres long. A second photo with the card at the other end gives a similar result, so you can trust it as an estimate. If you need it to the millimetre, measure it with a tape.

Measuring area and round objects

Area works the same way, with one twist: it scales with the square of the length. If the object is four times as wide as the reference and three times as tall, its area is twelve times the area of the reference, not seven. For irregular shapes, an editor or app that outlines the shape and counts the pixels inside it will give a better estimate than multiplying width by height.

For round objects such as pipes, logs or plates, measure the diameter straight across the middle, from edge to edge, and repeat at a right angle. If the two numbers differ a lot, the camera was probably tilted or the object is not truly round. A coin as the reference is handy here because it is also round, so you can check whether the photo has squashed it into an oval.

Tips for a more accurate photo measurement

Small habits make a big difference to the result:

  • Keep the reference on the same plane as the part you are measuring, not on top of it or behind it.
  • Use a reference that is similar in size to the object, or at least not tiny compared with it.
  • Measure along the same direction for both, for example both horizontally across the frame.
  • Avoid the edges of the frame, where lens distortion is strongest.
  • Use the longest edge you can, because a one-pixel error matters less over a long distance.
  • Take two or three photos and average the results, instead of relying on one.

When to put the phone down and use a ruler

A photo measurement is an estimate. Use a ruler, tape or caliper whenever the size has consequences: cutting material, ordering parts, fitting furniture through a doorway, medical or legal purposes, or anything that has to match a tolerance. The photo can tell you whether you are in the right range; the tape tells you the actual size.

A good compromise is to use the photo first and the tape second. Measure from the photo to see whether an idea is worth pursuing, for example whether a shelf might fit a space, then confirm the final number by hand before you buy or cut anything.

Photos are most useful when you cannot reach the object easily, when you want a quick record of roughly how big something was, or when you want to compare many similar items in one shot. In those cases a reference in the frame turns a picture into a useful, if approximate, measurement.

Where Count Objects Camera fits in

Count Objects Camera includes a Measure mode that shows detected dimensions and area from a photo, alongside its Counter for totals. As with any photo-based measurement, the output is an estimate affected by image quality, lighting, object visibility and camera angle, not an instrument reading. Verify the size directly whenever precision matters.

Our free Photo Count Readiness Checklist helps you set up a clear, square photo before you count or measure. Count Objects Camera is available on the App Store and Google Play.

Frequently asked questions

Can I measure something from a photo without a reference? Not reliably. Without something of known size in the same plane, there is no scale to convert pixels into real units.

What is the best reference object? Something flat, rigid and of well-known size, such as a bank card or a ruler laid flat. Check the size of any coin you use, because coins vary by country.

Why are my photo measurements inconsistent? Usually because the camera angle or distance changed, or the reference was not on the same plane as the object. Shoot straight on and keep both items side by side.

Can I measure height from a photo? Yes, with a reference of known height standing next to the object at the same distance, but any tilt of the camera changes the result, so treat it as a rough estimate.