Gamma test
Gamma decides how much of a picture sits in the shadows and how much in the highlights, and almost nobody checks it. Five squares on a field of fine lines will tell you which gamma your screen is actually running at — not the one its menu claims — and the only instrument needed is your own eye.
The test opens full screen. Space — next · Arrow keys — back and forward · Esc — exit
Your browser blocked full screen. The test still works in this window, but a full-screen view is more reliable — try pressing F11.
Did the square marked 2.2 blend into the lines?
What the test shows
Two screens. Press space or click to move between them.
The ladder is a field of fine black and white lines with five grey squares on it, labelled 1.8, 2.0, 2.2, 2.4 and 2.6. Step back from the screen, or squint, until the lines merge into an even grey. One of the squares will disappear into that grey; the number under it is approximately your display gamma.
The single square repeats the check with 2.2 alone, which is much easier to judge than five at once. If it looks lighter than the surrounding field, your gamma is below 2.2. If it looks darker, it is above.
Why this works
A row of alternating black and white lines emits half the light the panel can, because exactly half of the pixels are switched off. That is a physical fact about the screen, not a setting, and it gives a reference of 50% brightness that no amount of mis-calibration can move.
A solid grey square, on the other hand, goes through the gamma curve. The square that ends up emitting the same 50% is the one whose value, raised to the display’s gamma, comes to a half — so finding the square that vanishes is the same as finding the exponent. For a display at 2.2, that square is sRGB 186, which looks far lighter than “half of 255” and is exactly why gamma is worth understanding.
When it is lying to you
Three things break this test, and all three break it quietly.
Fractional display scaling. At 125% or 150% the browser cannot put one drawn pixel on one real pixel, so the lines are blended into grey before they ever reach the panel. The test checks the pixel ratio and warns when it is not a whole number, but set scaling to 100% if you can.
Browser zoom. Same mechanism, same result. Reset it with ctrl+0 or cmd+0 before starting.
Monitor processing. Sharpness filters, dynamic contrast and any picture mode that alters the curve on the fly will all distort the comparison. Turn dynamic or adaptive contrast off before judging the result.
What a wrong gamma costs
Too low, and shadows are lifted: dark scenes look washed out, fog and smoke lose their shape, and a photograph edited on your screen will look muddy and dark to everyone else.
Too high, and shadows are crushed: an enemy in a dark corridor is a solid black shape with no detail, and film grain and gradients turn into flat patches. This is the more common failure, because it makes a screen look contrasty in a shop.
Neither shows up on bright content, which is why gamma drifts for years without anyone noticing.
Common questions
What is gamma, in one sentence?
It is the curve between the number in a file and the light that leaves your screen: a pixel at half brightness in the file is not emitted at half the light, it is emitted at roughly a fifth, and gamma is the exponent that describes that relationship. The convention almost everything is made for is 2.2, which is why that is the square to watch. Without it, half of an image would look blindingly bright, because our eyes are far more sensitive to changes in the dark than in the light and the numbering is spaced to match.
Why lines instead of a number on the screen?
Because the browser cannot measure this and nothing in it can. A page can ask the display for its pixel ratio and its colour space, but it has no way to learn how much light the panel emits — that happens on the far side of the graphics card, the colour profile, the monitor menu and the room. A field of alternating black and white lines emits exactly half the panel maximum because half the pixels are dark, which turns your own eye into the instrument. It is the one honest way to do this in a browser.
The lines look grey rather than striped. Is that right?
From a distance, yes — that is the whole mechanism, and if they still look like stripes you are too close. From a normal seat the lines should merge into an even field. If they look grey even with your nose at the screen, something is resampling the image: browser zoom, display scaling that is not a whole number, or a smoothing filter on the monitor. Any of those invalidates the reading, and the test says so on screen when it can detect it.
My screen says 125% or 150% scaling. Does this still work?
No, and the test will tell you. A one-pixel line can only be a one-pixel line if one drawn pixel lands on one real pixel; at fractional scaling the browser resizes everything it draws, the lines are averaged into grey before they reach the panel, and every square will look wrong in the same direction. Set scaling to 100% or 200% for the test, or use a different machine. This is a real limitation and not worth working around with a guess.
Which gamma should I actually want?
2.2 for almost everyone. It is what sRGB specifies, what games, video and the web are authored against, and what photographs are edited on. A 2.4 target belongs to video work in a fully darkened room, which is a different job with a different room. If your screen has a picture mode called sRGB and the test says 2.2, those two agree and you are done.
Where do I change it if it is wrong?
The monitor menu first, where it is often listed as Gamma with options like 1.8, 2.0, 2.2 or as named picture modes. If there is no gamma setting, look at the picture mode: anything called Vivid, Dynamic, Game or Movie usually moves the curve, and the neutral or sRGB mode usually restores it. Only after that is it worth touching the graphics driver or the operating system calibration, because a correction applied there is fighting the panel rather than configuring it.
Does this work on a phone or a laptop?
On a phone, rarely — most phones apply their own adaptive brightness and colour processing, and many have non-integer scaling, so the reading is not trustworthy. On a laptop it usually works, as long as scaling is at a whole number and any automatic brightness or colour feature is off. The test is at its most reliable on a desktop monitor at 100% scaling with the lights at their normal level.