Enter the input value and gamma into the calculator to determine the gamma corrected output value. The input and output values are in the range of 0 to 1.

Gamma Correction Formula

The following formula is used to calculate the gamma corrected output value.

O = I^γ

Variables:

  • O is the output value after gamma correction
  • I is the input value (must be between 0 and 1)
  • γ (gamma) is the gamma correction value

To calculate the gamma corrected output value, raise the input value to the power of gamma.

What is Gamma Correction?

Gamma correction is a nonlinear operation used to encode and decode luminance or tristimulus values in video or still image systems. Gamma correction is important in the field of digital imaging because it allows for the adjustment of the luminance of the pixels to match the nonlinear characteristics of display systems or the human perception of light and color. It is a crucial step in the processing of images to ensure that they appear consistent and natural on different display devices.

How to Calculate Gamma Correction?

The following steps outline how to calculate the gamma corrected output value.


  1. First, determine the input value (I) which should be between 0 and 1.
  2. Next, determine the gamma correction value (γ).
  3. Use the formula O = I^γ to calculate the output value (O).
  4. Finally, enter the input value and gamma into the calculator to get the gamma corrected output value.
  5. After inserting the variables and calculating the result, check your answer with the calculator above.

Example Problem : 

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

Input value (I) = 0.5

Gamma (γ) = 2.2

Using the formula O = I^γ, the output value (O) is calculated as:

O = 0.5^2.2 ≈ 0.218