I was just looking up the definition of pixel coordinates for the flutter framework. You specify sizes in logical pixels. There are 96 logical pixels in an inch, which translates to roughly 38 pixels per cm.

This seems like a very odd number. I mean, using inches as unit of length is already slightly strange to a European, but since the framework is developed by an American company, that makes sense at least. But still: Why not have 100 logical pixels per inch? That would make all conversions so much easier.

I looked this up and the official term is Device Independent Pixel. Windows has been using 96 pixels per inch as well (now this is exposed as a scaling setting), while Android is based on 160 pixels per inch. iOS expects you to specify sizes in UIKit pixels, where the conversion to actual physical lengths depends on the specific device. They can probably get away with it because iOS runs on a limited number of devices, but it does look confusing already.

What is the reason behind this? Is it historical, based on some typesetting conventions, or does it have advantages when you calculate the layout of your design?

Maybe this number was chosen because 96 = 3 * 2^5. So it's close to 100, divisible by 3 and the other divisors are 2. That seems useful.

  • By "odd" do you mean "strange", which the Question seems to use? Commented Nov 16, 2021 at 19:17
  • That 'logical pixels' link gave me a 404 Page not Found error. Commented Nov 16, 2021 at 19:19

2 Answers 2


American designers are accustomed to think in terms of fractions. Now 96 is divisible by 2, 3, 4, 6, 8, 12, 16, 32...

This is beneficial for pixel alignment so you dont need to round or splatter units by half pixel values. Admittedly such a system more beneficial if you need to work with dividing ghroups of humans as they resist splitting in fractional numbers, really, really much.

Admittedly a multiple 60 would be better than 96 but it is probably too big a number. Manly as 60 is divisible by 5 too, so i would in fact use 120.

Here is a plot of how many divisors numbers have from 1 to 120. I have labeled the first numbers attaining a divisor count. Numbers based on ,multiples of 12 and then later 60 dominate.

enter image description here

  • >> " ... so i would in fact use 120" As would Bill Gates, it seems. 120dpi is probably the second most common display/Windows setting after 96dpi. Commented Jun 28, 2019 at 2:53
  • @SteveRindsberg yeah well the panel manufacturer has the same issue that they need to slice optimal panels out of a bigger sheet eliminating unusable areas. Since the panel has to have a real number of pixels....
    – joojaa
    Commented Jun 28, 2019 at 8:47

I never meet an European graphic designer, printer, who would use centimetres in the context of resolution. We just don't care. 96 is just bigger resolution from previous "screen resolution" of 72 pixels.
Why 72? Because Macintosh and Apple. Macintosh worked with Apple printer so the 72 was chosen because the picture on screen had the same size as in print.

Why 96? Because Windows. They came up with a whooping 1024x768 pixels in the late 80's. And figured out that if distance from printed page to eye is x then distance to screen should be x+1/3x.

Does it matter? In printing. In land of display you can dynamically change what you see. Zoom in, zoom out. Use 4 pixel square to act as "bigger pixel". You can "adapt" picture on the go. In printing you don't have such luxury.

  • The meat of that Answer is brilliant. It should be taught in schools. I worked in technical support, largely for graphics, for years and never once heard any, let alone such an obvious explanation for those numeric values. Nevertheless, "In printing. In land of display you can dynamically change what you see. Zoom in, zoom out. Use 4 pixel square to act as "bigger pixel". You can "adapt" picture on the go. In printing you don't have such luxury…" doesn't work in specialist or lay English. Could you re-phrase it, for clarity? Commented Nov 16, 2021 at 19:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.