Enter any two values (input, gamma, or output) into the calculator to determine the missing value. For the calculators on this page, the input and output values are normalized to the range of 0 to 1.

Gamma Correction Calculator

Pure Gamma
sRGB Transfer

Enter exactly 2 values to calculate the missing variable. (When solving for ฮณ, the input and output must be between 0 and 1, and not equal to 0 or 1.)

Gamma Correction Formula

In the โ€œPure Gammaโ€ (power-law) model, gamma decoding (linearization) and gamma encoding are related by the following equations.

\begin{aligned}
O &= I^{\gamma} \\
I &= O^{1/\gamma}
\end{aligned}

Variables:

  • O is the linear-light (decoded) output value (0 to 1)
  • I is the gamma-encoded (nonlinear) input value (0 to 1)
  • ฮณ (gamma) is the gamma exponent (ฮณ > 0)

To decode/linearize a gamma-encoded value, raise it to the power of ฮณ (O = I^ฮณ). To encode a linear-light value, raise it to the power of 1/ฮณ (I = O^(1/ฮณ)). Note: real standards such as sRGB are not a pure power law across the whole range; use the โ€œsRGB Transferโ€ tab for the standard piecewise sRGB conversion.

What is Gamma Correction?

Gamma correction is a nonlinear operation used to encode or decode luminance (or tristimulus) values in video and still-image systems. In practice, it is used to convert between linear light (where values are proportional to physical light intensity) and a nonlinear signal representation designed to match display behavior and human visual perception. Depending on direction, gamma correction may mean encoding (applying a 1/ฮณ power) or decoding/linearization (applying a ฮณ power).

How to Calculate Gamma Correction?

The following steps outline how to calculate a gamma conversion using the pure power-law model.


  1. Decide whether you are decoding/linearizing (O = I^ฮณ) or encoding (I = O^(1/ฮณ)).
  2. Determine the normalized value(s) (I and/or O), each between 0 and 1.
  3. Determine the gamma exponent (ฮณ), which should be greater than 0.
  4. Use the appropriate formula to calculate the unknown value.
  5. Enter the known values into the calculator above to confirm your result.

Example Problem : 

Use the following variables as an example problem to test your knowledge.

Input value (I) = 0.5

Gamma (ฮณ) = 2.2

Using the decoding/linearization formula O = I^ฮณ, the output value (O) is calculated as:

O = 0.5^2.2 โ‰ˆ 0.218