What is px in cm

Last updated: April 1, 2026

Quick Answer: PX to CM conversion depends on screen resolution (DPI). Using the standard web resolution of 96 DPI, 1 pixel (px) equals approximately 0.26458 centimeters or about 0.264 cm. The precise conversion is 1 cm equals approximately 37.795 pixels.

Key Facts

Understanding Pixels and Centimeters

Pixels (px) and centimeters (cm) are two fundamentally different units of measurement used in different contexts. Pixels are digital units used in screen displays, digital images, and web design, while centimeters are physical units of length. Converting between pixels and centimeters requires understanding the relationship between digital display resolution and physical measurements. The conversion is not absolute but depends on the screen resolution, specifically the Dots Per Inch (DPI) or Pixels Per Inch (PPI) value of the display device.

The Standard Web Conversion

For web design and digital displays, the standard conversion uses 96 DPI (dots per inch), which was established as the default screen resolution for web browsers. Since 1 inch equals 2.54 centimeters, the conversion formula is: 1 pixel = (2.54 cm / 96 pixels per inch) = 0.26458 cm. This means one pixel at standard web resolution equals approximately 0.264 centimeters. Conversely, 1 centimeter equals approximately 37.795 pixels. This standard allows web designers to predict how their designs will appear on standard monitors.

Screen Resolution and DPI Variations

Practical Conversion Examples

To convert pixels to centimeters at 96 DPI, multiply the pixel value by 0.26458. For example, 100 pixels equals 26.458 centimeters. Conversely, to convert centimeters to pixels, multiply by 37.795. So 10 centimeters equals approximately 377.95 pixels. However, these conversions only apply to 96 DPI displays. On a high-DPI display with 192 DPI (double resolution), the same pixel would represent half the physical distance.

Context-Dependent Conversions

The conversion between pixels and centimeters depends entirely on the device and context. In web design, 96 DPI is standard. In print design, 300 DPI is common. On modern Retina displays, the DPI can exceed 200, making pixels much smaller physically. Mobile devices often use DPI values between 300-500 PPI, making individual pixels nearly invisible to the human eye. Understanding the specific DPI or PPI of your target device is essential for accurate conversions and design decisions.

Design Implications

For web designers, the pixel-to-centimeter conversion matters when designing for print or ensuring consistent sizing across devices. A box that appears 3 centimeters wide on a standard desktop monitor at 96 DPI would appear smaller on a high-DPI laptop display with the same pixel dimensions. Modern responsive web design accounts for these variations by using CSS media queries and relative measurements rather than fixed pixel values, allowing designs to adapt to different screen densities and sizes.

Related Questions

What is DPI and how does it relate to pixels and centimeters?

DPI (Dots Per Inch) measures the density of pixels on a display. It determines the physical size of pixels. At 96 DPI, pixels are larger physically; at 300 DPI, the same pixel dimensions represent a smaller physical area. DPI is the essential bridge between pixel and centimeter measurements.

How do you convert inches to pixels?

To convert inches to pixels at 96 DPI (web standard), multiply inches by 96. For example, 1 inch equals 96 pixels, 2 inches equals 192 pixels. For other DPI values, multiply the inches by the specific DPI number.

Why do pixels look different sizes on different devices?

Pixels look different sizes because devices have different pixel densities (DPI or PPI). Smartphones have very high pixel density (300-500 PPI), making pixels tiny, while older monitors have lower density (72-96 PPI), making pixels visible. The same pixel dimension appears larger on low-DPI displays.

Sources

  1. Wikipedia - Pixel CC-BY-SA-4.0
  2. W3C - CSS Values and Units Module Level 3 CC-BY-3.0