Unit conversions
Screen dimensions and pixel density
Calculate the width, height and area of a rectangular screen from its diagonal and aspect ratio, with separate horizontal and vertical pixel densities.
Enter your data, press Calculate and export the result if you need it. Editing or resetting clears the current result.
Result
Formula / calculation:
Entered dimensions describe the active rectangular image area, not the frame or a curved surface. Inch conversion is exactly 2.54 cm per inch. Diagonal and ratio components must be positive, from 10⁻⁹ to 10⁹. Pixel dimensions are integers 1–100000. The horizontal and vertical densities may differ when the entered pixel ratio differs from the physical ratio; the calculated pixel aspect ratio is retained. Floating-point approximations, not a product specification or viewing-distance recommendation.
Decimal results are approximate. Inputs stay in this browser tab.
How it works
Entered dimensions describe the active rectangular image area, not the frame or a curved surface. Inch conversion is exactly 2.54 cm per inch. Diagonal and ratio components must be positive, from 10⁻⁹ to 10⁹. Pixel dimensions are integers 1–100000. The horizontal and vertical densities may differ when the entered pixel ratio differs from the physical ratio; the calculated pixel aspect ratio is retained. Floating-point approximations, not a product specification or viewing-distance recommendation. The separate CSS px and rem form uses your entered signed decimal value and an explicitly supplied positive root font size in CSS px. For CSS px to rem, divide the value by that root font size; for rem to CSS px, multiply it. Zero and negative values are supported. The exact fraction is retained alongside a display rounded to six decimal places. Numeric entries accept up to 100 plain decimal characters. The five complete current file formats preserve the conversion inputs, source calculation and exact result. The separate screen ruler draws a scale in CSS pixels and requires your own physical reference and explicit calibration. Match the reference span on the screen, enter the known reference length, confirm the match and calibrate before measuring. The measurement uses the ratio of the entered physical length to the matched CSS span; it does not infer physical size from pixel density or a fixed screen resolution. Exact length and fraction operations retain the source inputs and exact result, with a rounded display in mm, cm or inches. Changes to calibration inputs or viewing conditions invalidate the current measurement. Physical accuracy depends on your reference, matching and unchanged viewing conditions; the tool does not independently verify that match. Five complete current export formats retain the calibration, source calculations and result.
Worked example
With these example values the calculator gives the result below. You can change any value in the form above.
Inputs
- Screen diagonal
- 27
- Diagonal unit
- Inches
- Aspect width
- 16
- Aspect height
- 9
- Horizontal pixels
- 2560
- Vertical pixels
- 1440
- Numeric display decimal places (0–12)
- 6
Result
- Width (cm)
- 59.77265
- Height (cm)
- 33.622116
- Active area (cm²)
- 2009.682972
- Diagonal (cm)
- 68.58
- Diagonal (inches)
- 27
- Pixel diagonal
- 2937.20956
- Diagonal pixels per inch
- 108.785539
- Horizontal pixels per inch
- 108.785539
- Vertical pixels per inch
- 108.785539
- Pixel aspect ratio
- 1
Frequently asked questions
How do I calculate screen width and height from the diagonal?
Enter the screen diagonal and the aspect ratio. The screen dimensions calculator returns the width, height and active area of the rectangular image area in centimetres.
How is pixel density (PPI) calculated?
Enter the pixel width and height as whole numbers from 1 to 100000. The calculator shows the pixel diagonal and the pixels per inch along the diagonal, horizontally and vertically.
Why can horizontal and vertical pixel density differ?
They differ when the entered pixel ratio does not match the physical aspect ratio. The calculated pixel aspect ratio is kept in the result.
How many centimetres are in an inch for screen sizes?
The screen calculator uses exactly 2.54 cm per inch.
Does the screen size include the frame or curved displays?
No. The entered dimensions describe the active rectangular image area, not the frame or a curved surface.
How do I convert CSS px to rem?
A separate form divides the px value by the root font size you supply in CSS px; for rem to px it multiplies. Zero and negative values are allowed, and the root font size must be positive.
Can I measure real lengths with an on-screen ruler?
Yes, after calibration with a physical reference of known length between 1 and 1000 mm. Recalibrate after changing screen, zoom or display settings; it is not a certified measurement.