- Match the ruler to the shape of the measurement
- Straight lines and the sizes of things
- Slopes, diagonals and angles
- Pixels, units and what your display does to them
- On its own or inside a bigger toolkit
- What these rulers cost
- Rulers for straight lines and element sizes
- Rulers that rotate, read angles or do more
- Back to the first column
A pixel ruler that lies flat across the desktop answers the straight questions, like the gap between two buttons or the width of a panel. For anything sloped, you'll want a ruler you can rotate, a pair of on-screen calipers, or a triangular ruler that reads angles as well as distances.
A web page that looks a hair off, an icon that won't line up with its label, a roofline in a photograph whose pitch you need: each one is a job for a ruler that sits on top of whatever's on screen. They aren't the same job, though. The first thing to settle is the shape of your measurement, because that decides the kind of ruler, and the kind of ruler matters far more than the name on it.
Match the ruler to the shape of the measurement
Find your measurement in the left column. The middle column is the kind of ruler that handles it, and the right column is the quick test I'd run before trusting a single number it gives you.
| What you need to measure | Kind of ruler | Test it on |
|---|---|---|
| The gap between two buttons, or any straight horizontal or vertical distance | A pixel ruler you can set horizontally or vertically | Two elements whose spacing you already know from the design file |
| The width and height of a panel, image or window | An edge-detecting utility that finds the edges for you | An element with a soft shadow or faint border, to see where it decides the edge is |
| A sloping edge, such as a roofline in a photograph | A ruler you can rotate, or floating calipers you can turn to any angle | A diagonal whose length you can work out from its width and height |
| The angle between lines or points | A triangular ruler that reads distance and angle together | A right angle in a drawing, which should read ninety degrees |
| The size and the colour of the same detail | A measurement app with magnification and colour sampling in one workspace | A one-pixel line, zoomed in, to see whether you can sample its exact colour |
| Spacing inside a screenshot you're about to mark up | A capture and annotation app with a ruler among its tools | A known element, measured on the desktop and again in the capture |
| Sizes in units other than pixels | A configurable desktop ruler that can display other units | A page shown at print size, against a real ruler held to the glass |
Straight lines and the sizes of things
For straight measurements, the choice comes down to how much of the work you want the tool to do. A plain pixel ruler is a strip you drag across the screen and read like the one in your desk drawer: line up the zero, then look at where the far end lands. An edge-detecting utility goes a step further. You point at an element and it works out where the edges are, then reports the spacing and the dimensions. Microsoft documents a ruler of that kind as part of PowerToys.
Edge detection is quick, but it can only go by what's drawn. On a button with a drop shadow or a softened corner, check whether it measures to the visible edge or to the shadow before you pass a number to a developer. With a plain ruler you're the one deciding where the edge is, and on a fussy design that's sometimes exactly what you want.
For a gap of one or two pixels, the hard part is seeing it, not measuring it. Look for a zoom window or a magnifier alongside the ruler. At normal size a single pixel's difference is easy to miss; zoomed in, it's obvious, and you'll stop second-guessing the reading.
Slopes, diagonals and angles
This is where a flat strip stops helping. Lay a horizontal ruler under the slope of a roofline and you'll get its width, not its length. You need something that turns, and the tools below come in three designs: a ruler you rotate to lie along the line, a pair of floating calipers you swing to any angle, and a triangular ruler that measures both the distance and the angle between points.
Decide what you're after before you start. If it's the length along the slope, a rotating ruler or calipers will do it. If it's the pitch, meaning the angle against the horizontal, you need a tool that reports angles, and the triangular design gives you that directly. Then fix your two points before you move either end. It's easy to nudge one end while adjusting the other and end up measuring a slightly different line from the one you meant.
Here's a check that takes two minutes. In any paint program, draw a line that runs 300 pixels across and 400 pixels down. By Pythagoras, it's 500 pixels long. Measure it with whatever rotating ruler you've installed. If the reading lands well away from 500, something in the tool or your setup needs sorting before you trust it on a photograph.
Pixels, units and what your display does to them
Pixels are the native unit for this kind of tool, and they're the unit a developer will ask for. A configurable ruler that can display other units helps when a print designer wants centimetres instead. Treat any physical unit with care, though. A ruler can only turn pixels into centimetres if it knows how big your pixels are, so hold a real ruler to the screen and compare before you quote a physical size to anyone.
Windows display scaling is the other thing to test. On a laptop that enlarges everything to keep text readable, find out whether your ruler reports the pixels you see or the pixels the app was drawn at. Make a rectangle of known size, measure it at your usual scaling, switch the scaling, and measure again. If the number moves, you've learnt how your ruler behaves, and that saves a long back-and-forth with whoever built the page.
Pixel artists counting single squares have a different problem: the measuring and the drawing happen in the same place. My roundup of the best pixel art apps covers the drawing side of that work.
On its own or inside a bigger toolkit
Some rulers come as a single-purpose program. Others sit inside a toolkit that also captures the screen, annotates it or samples colour. A ruler inside a capture app makes sense when the measurement ends up in a screenshot anyway: you grab the screen, measure, mark it up and send it from one place.
A measurement app that adds magnification and colour sampling is the one I'd lean towards for checking a build against a mock-up, because once you've asked how wide something is, the next question tends to be which shade of grey it should be. If the measuring is part of a wider design job, my guide to free graphic design software covers the apps where the mock-up itself gets made.
A stand-alone ruler has one clear advantage: there's nothing else to learn. When all you'll ever do is check a gap, a dedicated ruler is the tidier choice, and I'd keep the bigger toolkit for days when you're capturing and marking up as well.
Want AI doing the heavy lifting in your marketing?
I build the systems that handle the boring 80 percent, so you get your week back. Done properly, with the human kept in.
What these rulers cost
The terms vary more than you'd expect for such a focused category. Among the tools below you'll find a one-time purchase, free trials before you buy, and open-source code you can download.
Do you make on-screen measuring tools for Windows? Tool makers can ask to be considered for a featured place on this list.
Rulers for straight lines and element sizes
PicPick
A screen toolkit with a pixel ruler inside it, set either horizontally or vertically for straight measurements across whatever's on the desktop.
PowerToys Screen Ruler
Microsoft's edge-detecting Windows utility: point it at elements on the desktop and it measures their spacing and dimensions in pixels.
PixelRuler
Drag out a resizable ruler to measure horizontal distances on screen, then inspect the fine detail through its zoom window.
Screen Ruler
Configurable desktop ruler that measures the size of elements on the screen in pixels and can show other units when pixels won't do.
Rulers that rotate, read angles or do more
MB-Ruler
Triangular on-screen ruler that measures distances and angles between points, so a slope's angle and its length come from the same tool.
Screen Calipers
Measuring along an inclined edge? These floating on-screen calipers turn to any angle and measure the distance along it.
Screen Ruler Professional
Horizontal and vertical guides for straight checks, plus a ruler you can rotate when the line you need runs diagonally.
FastStone Capture
Capture and annotation application whose desktop tools include a screen crosshair and a screen ruler, alongside the screenshot work it's made for.
Meazure
Size and colour in one go: measurement, capture, magnification and colour sampling share a single workspace in this Windows application.
Back to the first column
Before installing anything, go back to the table and find the row that matches the measurement in front of you. A straight gap or an element size points to the first group of tools above; a slope, a diagonal or an angle points to the second. Install one, run the test from the right-hand column, and keep it only if the number matches what you already knew. A ruler you've checked once against a known size is one you can quote to a developer without a second thought.
Want your tool on this list? Featured spots and reviews here are paid partnerships. Here's how to partner with me.