On-Screen Ruler (CM)
Measure in centimeters directly on your screen. Calibrate using your screen size for accuracy. See also our Inch Ruler, Length Converter, and CM to Inches converter.
Calculated: 37.8 pixels per cm for your calibration
Calibration Guide
Hold a physical credit card (8.56 cm wide) against the screen ruler. Adjust the screen size value until the ruler matches the card width exactly.
• Credit card: 8.56 cm × 5.4 cm
• US dollar bill: 15.6 cm × 6.6 cm
• Standard pencil diameter: 0.7 cm
• AA battery: 5.0 cm long
• USB-A connector width: 1.2 cm
How to Use the CM Ruler
Enter your screen's diagonal size in inches (check your monitor or laptop specs). Set the desired ruler length in centimeters. The SVG ruler renders with centimeter divisions and millimeter sub-marks. For best accuracy, calibrate by holding a known object like a credit card against the screen and adjusting the screen size until measurements match.
Features
- SVG ruler with centimeter and millimeter markings
- Screen DPI calibration via diagonal screen size input
- Adjustable ruler length (1-30 cm)
- Clear numbered centimeter labels
- Half-centimeter marks at 5mm positions
- Calibration guide with common reference objects
Measurement Tips
For the most accurate on-screen measurements, use the calibration objects listed above. Screen DPI varies significantly between devices — a 13-inch laptop and 27-inch monitor will show different physical sizes for the same pixel count. Always calibrate when switching devices. Place objects flat against the screen for parallel measurement.
The metric system uses centimeters and millimeters as its primary small-scale measurement units. One centimeter equals 10 millimeters, and 100 centimeters make one meter. This decimal-based system makes conversions straightforward compared to the imperial system with its fractions of inches.
Common items that measure approximately specific centimeter lengths: a standard paperclip is about 3.2 cm, a USB flash drive is about 5-6 cm long, a credit card is 8.56 cm wide, and a standard letter paper (A4) is 21 cm wide and 29.7 cm tall. These everyday objects can serve as quick reference checks when you don't have a ruler handy.
When measuring with this on-screen ruler, keep your browser zoom at exactly 100% (use Ctrl+0 or Cmd+0 to reset). Any zoom level other than 100% will distort the ruler proportions and produce inaccurate measurements. Also note that different browsers may render pixels slightly differently, so calibrate with a physical object each time.
Reference Table
| Object | Size (cm) | Notes |
|---|---|---|
| Credit card width | 8.56 cm | ISO standard |
| US dollar bill | 15.6 cm | Length |
| Paperclip | 3.2 cm | Standard size |
| AA battery | 5.0 cm | Length |
| Quarter (US coin) | 2.43 cm | Diameter |
| iPhone 15 width | 7.15 cm | Without case |
Frequently Asked Questions
How accurate is this on-screen ruler?
Accuracy depends on correct calibration. With proper screen size input, the ruler achieves approximately 1-2mm accuracy. Physical rulers remain more precise for critical measurements.
Where do I find my screen size?
Check your laptop or monitor specifications. The screen size is the diagonal measurement in inches, typically listed in product details (e.g., 13.3", 15.6", 24", 27").
Why does the ruler look different on different devices?
Each screen has different pixel density (PPI/DPI). A 15.6-inch laptop has more pixels per centimeter than a 27-inch monitor at the same resolution, so the ruler must be calibrated for each screen.
Can I measure objects by placing them on screen?
Yes, place flat objects directly against your screen (gently) and read the measurement from the ruler markings. This works best for thin, flat items.
What is the difference between cm and mm markings?
Centimeter marks are the tall numbered lines. Between each cm are 9 millimeter marks — shorter lines dividing each centimeter into 10 equal parts. The 5mm mark is slightly taller than others.
Does screen zoom affect accuracy?
Yes, browser zoom will distort the ruler. Ensure your browser is set to 100% zoom (Ctrl+0 or Cmd+0) for accurate measurements.
Related Tools
About the Metric System
The metric system is a decimal-based measurement system used by most countries worldwide. Its length units follow powers of ten: 10 millimeters = 1 centimeter, 100 centimeters = 1 meter, 1000 meters = 1 kilometer. This makes conversions simple multiplication or division by powers of 10.
The meter was originally defined in 1793 as one ten-millionth of the distance from the equator to the North Pole. Today it is defined by the speed of light: the distance light travels in 1/299,792,458 of a second. This gives the metric system a fundamental physical basis that makes it the standard for scientific measurement worldwide.
Screen pixels do not have a fixed physical size — their real-world dimensions depend on the display's pixel density (pixels per inch or centimeter). A 4K monitor (3840×2160 pixels) at 27 inches has approximately 163 PPI, while a 4K display at 15.6 inches has about 282 PPI. This is why on-screen rulers must be calibrated for each specific display.
Common metric measurements in daily life include: body temperature (36.5-37.5°C is normal), room temperature (20-22°C), human height (typically 150-190 cm), paper sizes (A4 is 21×29.7 cm), and food packaging (measured in grams and milliliters). Understanding centimeters and millimeters is essential for sewing, crafting, engineering, and scientific work.
For precision work like engineering and machining, measurements are often given in millimeters to avoid decimal points. A dimension written as 25.4 mm is less ambiguous than 2.54 cm because there is no decimal point confusion. Technical drawings typically use millimeters as the default unit with tolerances specified to ±0.1 mm or finer.
The relationship between pixels and physical measurements depends on the display's DPI (dots per inch) or PPI (pixels per inch). CSS uses a reference pixel of 1/96 inch by default, but actual rendered size varies with device pixel ratio and zoom level. This is why web-based rulers need calibration — the CSS pixel does not correspond to a fixed physical size.
Different industries have different measurement precision needs. Furniture making typically works to ±1 mm tolerance. Clothing patterns require ±2 mm accuracy. Jewelry making needs ±0.1 mm precision. Electronic PCB design works in fractions of a millimeter. This on-screen ruler is best suited for casual measurements with ±2-3 mm accuracy when properly calibrated.
The ruler SVG in this tool uses vector graphics that remain sharp at any zoom level. SVG coordinates map directly to the pixel grid, with the calibration factor converting between CSS pixels and physical centimeters. The calculation uses the Pythagorean theorem to determine pixel density from the diagonal screen size and the screen resolution dimensions.
Retina and HiDPI displays have device pixel ratios greater than 1 (typically 2x or 3x). This means each CSS pixel is rendered using multiple physical pixels, resulting in sharper text and graphics. For ruler accuracy, what matters is the CSS pixel size relative to physical dimensions, which is determined by the screen's total resolution and diagonal size.
Touch screens on tablets and phones often have very high pixel densities (300+ PPI), making them excellent candidates for on-screen measurement tools. However, parallax error from the glass thickness between the display panel and the surface means objects placed on a touch screen may appear slightly offset from the ruler markings depending on viewing angle.
For educational purposes, this ruler helps students visualize metric measurements and practice estimating lengths. Teachers can use it as a teaching aid by having students guess object sizes and then verify against the ruler. The millimeter subdivisions teach the relationship between cm and mm in a hands-on, visual way.
International shipping and packaging uses metric measurements exclusively. Package dimensions in centimeters determine shipping costs and size categories. Product dimensions on e-commerce sites are listed in metric units for international customers. This ruler helps verify product dimensions when comparing online listings to actual items.
The calibration approach in this tool (using screen diagonal size) is one of several methods. Alternative calibration methods include: using a known physical object like a credit card, adjusting until an on-screen inch/cm matches a physical ruler, or reading the actual DPI from display manufacturer specifications. All methods aim to determine the physical size of one CSS pixel on your specific screen. The diagonal size method is most convenient because it is a commonly known specification for any display device, readily found in product descriptions and settings menus. For the most reliable results, always verify your calibration by measuring a known object against the on-screen ruler after entering your screen size to confirm the measurements are accurate within an acceptable tolerance.