Toolvito

Works on this device

Display Scaling Calculator

Display scaling makes text and controls larger by drawing each logical pixel with more than one real pixel. This calculator shows the effective resolution at a scale, the scale you need for a wanted size, and how two screens can show things at the same size.

Enter your values

Use this to see how much room programs have on a screen at a scale such as 125% or 150%.

Your values

The real (native) number of pixels from left to right.

The real (native) number of pixels from top to bottom.

The scale in the display settings of your system. 100% means no scaling.

Your values are worked out in this browser. They are not sent to a server.

Your result will show here

Fill in the values, then choose Calculate.

How to use this calculator

  1. Choose what you want to work out.
  2. Enter the real resolution of the screen in pixels, for example 3840 and 2160.
  3. Enter the scaling in percent, or the size you want, as the fields ask.
  4. For pixels per inch, also enter the screen diagonal. You can choose inches, centimetres or millimetres.
  5. Choose Calculate. You can copy, download or print the result.

The formulas

  • Device pixel ratio = scaling ÷ 100. At 150% the ratio is 1.5.
  • Effective resolution = real pixels ÷ ratio, for the width and for the height. Programs and web pages lay out their content in these effective pixels, which are also called logical pixels or CSS pixels.
  • Physical pixels for one logical pixel = ratio × ratio. At 200% each logical pixel is drawn with 4 real pixels.
  • Work area compared with 100% = 100 ÷ (ratio × ratio).
  • Pixels per inch = square root of (width² + height²) ÷ diagonal in inches.
  • Logical pixels per inch = pixels per inch ÷ ratio. Two screens show things at the same real size when this number is the same.
  • Scale for a target size = pixels per inch ÷ target logical pixels per inch × 100.
  • Physical pixels = logical pixels × ratio, and logical pixels = physical pixels ÷ ratio.

Worked example

A 27 inch screen has 3840 × 2160 pixels and is set to 150%. The ratio is 1.5. The effective resolution is 3840 ÷ 1.5 = 2560 by 2160 ÷ 1.5 = 1440. Each logical pixel uses 1.5 × 1.5 = 2.25 real pixels, and the work area is 100 ÷ 2.25 = 44.4% of the area at 100%.

The same screen has √(3840² + 2160²) ÷ 27 = 163.2 pixels per inch. At 150% that is 163.2 ÷ 1.5 = 108.8 logical pixels per inch. For a target of 96 logical pixels per inch the scale is 163.2 ÷ 96 × 100 = 170%. The nearest 25% step is 175%.

A 24 inch screen with 1920 × 1080 pixels at 100% has 91.8 pixels per inch. For the same real size on the 27 inch 4K screen beside it, the scale is 100 × 163.2 ÷ 91.8 = 177.8%. The nearest 25% step is 175%.

Limits you should know

  • The formulas take the pixels as square. This is true for almost every computer screen made today.
  • Each system has its own steps and rules. Windows offers steps of 25% and custom values. macOS offers a short list of "looks like" resolutions. Some Linux desktops offer whole numbers only. Check what your system allows.
  • At a scale that does not give whole pixels, the system rounds. Text and thin lines can then look less sharp. This page shows when that happens, and it cannot show how your system draws it.
  • The diagonal that a maker prints is often rounded, so pixels per inch can differ a little from the maker's number.
  • The names of resolutions in the list of common screens are the usual names. A screen with the same name can have another pixel count.
  • This page gives no advice on which text size is good for your eyes. The target size is your choice.
  • To test the colours of a display, use the Screen Color Test.

Related tools