CalcOpenly
English

PPI calculator for screen size and aspect ratio

PPI calculator: pixel density from resolution and diagonal, plus screen width and height, aspect ratio, dot pitch and the distance where pixels blend.

Drafted with AI writing toolsUpdated Checked examples: 5

Try
Pixel density
PPI
Pixel density: 108.79 PPI
Decimal places: 2; Nearest, ties to even
Aspect ratio
16:9
Width
23.53in / 59.77cm
Height
13.24in / 33.62cm
Dot pitch
0.2335mm
Total pixels
3.69MP
Pixels blend beyond
31.6in / 80.3cm

A 27-inch 2,560 × 1,440 screen (16:9) packs 108.8 pixels per inch into a 23.5 × 13.2 in panel; beyond about 32 in (80 cm) a person with 20/20 vision can't pick out single pixels.

Screen outline

27 in diagonal23.53 in · 2,560 px13.24 in · 1,440 px
How it's calculated S
  1. Diagonal in pixels

    2,5602+1,4402=2,937.21\sqrt{2{,}560^2 + 1{,}440^2} = 2{,}937.21
  2. Pixels per inch

    2,937.2127=108.79\frac{2{,}937.21}{27} = 108.79
  3. Physical width and height

    27×2,5602,937.21=23.53 in,27×1,4402,937.21=13.24 in27 \times \frac{2{,}560}{2{,}937.21} = 23.53\ \text{in},\quad 27 \times \frac{1{,}440}{2{,}937.21} = 13.24\ \text{in}
  4. Dot pitch

    25.4108.79=0.2335 mm\frac{25.4}{108.79} = 0.2335\ \text{mm}
  5. Distance where single pixels blend

    1108.79×tan⁡(1′)=31.6 in\frac{1}{108.79 \times \tan(1')} = 31.6\ \text{in}

    At this distance one pixel spans 1 arcminute, the detail 20/20 vision resolves; this is the idea behind “retina” displays.

About the PPI calculator

Pixel density is the diagonal resolution in pixels divided by the diagonal size in inches: PPI = √(w² + h²) ÷ diagonal. The same ratio splits the diagonal into the physical width and height, dot pitch is 25.4 mm ÷ PPI, and the blend distance is where one pixel spans 1 arcminute, the detail that 20/20 vision resolves.

The default 27-inch 2560 × 1440 monitor has 108.79 PPI, a 16:9 panel of 23.53 × 13.24 inches, and pixels that blend beyond about 31.6 inches (80 cm). The same size at 4K, 3840 × 2160, reaches 163.18 PPI and blends beyond 21 inches.

Advertised diagonals are rounded, so results can differ slightly from a spec sheet. The blend distance assumes 20/20 vision; people with sharper eyesight can pick out pixels from further away.

How to calculate PPI (pixels per inch)

Divide the screen's diagonal in pixels by its diagonal in inches: PPI = √(width² + height²) ÷ diagonal. A 27-inch 2560 × 1440 monitor has √(2560² + 1440²) = 2,937.2 pixels corner to corner, so 2,937.2 ÷ 27 = 108.79 PPI. Use the native resolution and the visible diagonal.

Worked example: a 27-inch 1440p monitor

  1. Diagonal in pixels: √(6,553,600 + 2,073,600) = √8,627,200 = 2,937.21.
  2. Pixel density: 2,937.21 ÷ 27 = 108.79 PPI.
  3. Width: 27 × 2560 ÷ 2,937.21 = 23.53 in. Height: 27 × 1440 ÷ 2,937.21 = 13.24 in.
  4. Dot pitch, the distance between pixel centers: 25.4 ÷ 108.79 = 0.2335 mm.

The same 27-inch size at 4K (3840 × 2160) has the same width and height but 163.18 PPI, with a dot pitch of 0.1557 mm.

Screen width and height from the diagonal

For a 16:9 screen, the width is 0.8716 × the diagonal and the height is 0.4903 × the diagonal. A 55-inch TV is therefore about 47.9 × 27.0 inches of picture, before the bezel and stand.

Those factors come from the same triangle: width = diagonal × 16 ÷ √(16² + 9²). For any other ratio, swap in its two numbers.

Pixel density of common screens

  • 24-inch 1920 × 1080: 91.79 PPI
  • 27-inch 2560 × 1440: 108.79 PPI
  • 32-inch 3840 × 2160: 137.68 PPI
  • 27-inch 3840 × 2160: 163.18 PPI
  • 13.3-inch 2560 × 1600 laptop: 226.98 PPI
  • 55-inch 3840 × 2160 TV: 80.11 PPI

A bigger screen at the same resolution has fewer pixels per inch, which is why a 55-inch 4K TV is less dense than a 24-inch 1080p monitor.

At what distance do pixels disappear?

With 20/20 vision you resolve detail of about 1 arcminute, a sixtieth of a degree (AOA). Single pixels blend once one pixel spans less than that: distance = 1 ÷ (PPI × tan 1′).

The 27-inch 1440p monitor reaches that point at 31.6 inches (80 cm), and the 4K version at 21.1 inches. A 55-inch 4K TV gets there at 42.9 inches. Sharper eyesight sees pixels from further away.

This is the idea behind Apple's "Retina" name, which launched with the iPhone 4 at 326 PPI for phone viewing distances.

No single PPI works at every distance. For pixels to blend, a screen needs about 143 PPI when viewed from 24 inches but 344 PPI from 10 inches.

Aspect ratio from the resolution

Divide both pixel counts by their greatest common divisor. 2560 and 1440 share 160, giving 16:9; turned to portrait, 1440 × 2560 is 9:16.

2560 × 1600 reduces to 8:5, the same shape as 16:10. Some resolutions only approximate a familiar ratio: 1366 × 768 reduces to 683:384, close to 16:9 but not equal.

Example screens

ScenarioPPIWidth, inHeight, in
Default108.78553923.53254013.237053
4K same diagonal163.17830923.53254013.237053
Laptop226.98300511.2783777.048986
Square141.4213567.0710687.071068
Nearly widescreen100.45467013.5981737.645239
  • Default: 27 inches at 2560 × 1440. 4K same diagonal: 27 inches at 3840 × 2160.
  • Laptop: 13.3 inches at 2560 × 1600.
  • Square: 10 inches at 1000 × 1000.
  • Nearly widescreen: 15.6 inches at 1366 × 768.

Getting the numbers right

  • Use the native resolution. Operating-system scaling and browser CSS pixels change how big things look, not how many physical pixels the panel has.
  • Use the visible diagonal. Measure the lit picture area, not the case. A diagonal in centimeters works too: 68.58 cm is exactly 27 inches.
  • Expect small gaps with spec sheets. Advertised diagonals are rounded. The iPhone 4's 960 × 640 screen at exactly 3.5 inches gives 329.65 PPI, while Apple quotes 326, which matches a diagonal of about 3.54 inches.
  • Flat rectangles only. The geometry assumes square pixels on a flat, rectangular panel, so curved screens and cut-out corners will differ slightly.

Mistakes that skew PPI

  • Dividing the horizontal pixels by the diagonal. 2560 ÷ 27 = 94.8 mixes a side with a diagonal and understates the density.
  • Calling it DPI. DPI counts printer dots per inch. Spec sheets sometimes use it for screens, but the screen quantity is PPI.

To resize an image or video while keeping its proportions, use the aspect ratio calculator.

Worked examples

27-inch 2560 × 1440 monitor

Diagonal
27 in
Horizontal pixels
2560
Vertical pixels
1440
Pixel density
108.79 PPI
Aspect ratio
16:9
Width
23.53 in
Height
13.24 in
Dot pitch
0.2335 mm
Pixels blend beyond
31.6 in
Total pixels
3.69 MP

Checked against: √(2560² + 1440²)/27; retina distance 1/(PPI·tan(π/10800))

13.3-inch 2560 × 1600 laptop

Diagonal
13.3 in
Horizontal pixels
2560
Vertical pixels
1600
Pixel density
227.00 PPI
Aspect ratio
8:5 (16:10)

Checked against: Apple MacBook Air (M1, 2020) tech specs list 227 ppi; exact decimal arithmetic gives 226.983

Square screen

Diagonal
10 in
Horizontal pixels
1000
Vertical pixels
1000
Pixel density
141.42 PPI
Aspect ratio
1:1
Width
7.07 in

Checked against: 1000√2/10

1366 × 768 is only nearly 16:9

Diagonal
15.6 in
Horizontal pixels
1366
Vertical pixels
768
Pixel density
100.45 PPI
Aspect ratio
683:384 (≈ 16:9)

Checked against: Independent calculation

Questions

How do you calculate PPI?

Find the diagonal in pixels with Pythagoras and divide it by the diagonal in inches. A 27-inch 2560 × 1440 monitor has √(2560² + 1440²) = 2,937.2 pixels along the diagonal, so 2,937.2 ÷ 27 = 108.79 PPI. Use the visible screen diagonal, not the outside of the case.

What PPI counts as a Retina display?

Apple introduced the name with the iPhone 4 in 2010: a 960 × 640 screen at 326 pixels per inch, where Apple said the eye cannot make out individual pixels at a normal viewing distance. At 326 PPI one pixel spans 1 arcminute from 10.5 inches, so the threshold depends on distance: a 27-inch 4K monitor at 163 PPI passes the same test from 21 inches.

How far should I sit from a 4K TV?

To stop seeing single pixels with 20/20 vision, sit at least about 43 inches (1.1 m) from a 55-inch 4K TV, which has 80.1 PPI, or 51 inches (1.3 m) from a 65-inch one. Beyond about 86 inches (2.2 m), a 55-inch 1080p screen blends its pixels too, so 4K adds little visible detail from that far away.

What aspect ratio is 2560 × 1440?

16:9: divide both numbers by their greatest common divisor, 160. TVs and most monitors are 16:9, while some laptops use 16:10, such as the 13.3-inch 2560 × 1600 MacBook Air (8:5 when reduced). A resolution such as 1366 × 768 reduces only to 683:384, which is within 0.05% of 16:9.

Why does my result differ from the spec sheet?

Advertised diagonals are rounded. The iPhone 4's 960 × 640 screen is sold as 3.5 inches, which gives 329.7 PPI, while Apple quotes 326 PPI, matching a diagonal of about 3.54 inches. Enter the diagonal to two decimal places when you know it, and check that the resolution is the panel's native one.

About this calculator

PPI=w2+h2diagonal (in)dblend=1PPI⋅tan⁡(1′)\begin{gathered}\text{PPI} = \frac{\sqrt{w^2 + h^2}}{\text{diagonal (in)}} \\ d_{\text{blend}} = \frac{1}{\text{PPI}\cdot\tan(1')}\end{gathered}

Sources

  1. Pixel density — PPI from resolution and diagonal
  2. Visual acuity — 20/20 vision resolves detail of 1 arcminute

Checked against references

This calculator includes 5 worked examples with independently sourced answers. They run in the test suite, and you can run them here too.

Put this calculator on your site

Paste this where you want the calculator to appear. It is free to use, it stays in step with corrections made here, and the credit line below it links back so your readers can find the full version.

Height
Preview the embed

Keep the credit line. It is the only condition, and it is what keeps these calculators free.