Light Modulation Calculator

Calculate time-weighted mean, percent modulation and flicker index from a complete-cycle linear optical waveform.

Describe a measured linear optical waveform over complete cycles. Enter equal-duration samples, or constant levels with their segment durations. The example is an artificial two-level cycle.

Results update as you edit.

Calculating needs JavaScript. The form becomes available when its script is ready; the guide below is always readable.

Calculation inputs

Calculation inputs
Equal-duration mode gives every sample the same weight. Duration mode treats each entered level as constant over its duration.
One nonnegative value per row for equal-duration samples; or value, duration for constant segments. Durations must be positive and use one common time unit. Up to 2,000 rows; no header.
Record the instrument, linear signal unit, dark correction, bandwidth, sample rate, range, geometry and complete-cycle selection.
A video brightness trace or an unknown cropped portion of a cycle does not establish these conditions.

Continue your task

Keep percent modulation and flicker index with the supplied sampling basis; neither is a health or camera-banding verdict.

If this answers your question within the model’s limits, record the original inputs, unrounded result and conditions. Otherwise choose an action only when its condition applies:

See this task in the decision tree

Opening another tool does not transfer or store your entries. Keep the original values, units and conditions with the next calculation.

The waveform matters as well as its highest and lowest values

Two lights can have the same minimum and maximum measured output yet spend very different amounts of time near each level. Percent modulation describes that range. Flicker index also accounts for the area of the waveform above its own mean, so its result changes with waveform shape and duration.

Use a linear optical signal measured under stable conditions, with enough bandwidth and sampling to represent the variation of interest. The values can be in a calibrated optical unit or a common proportional linear scale. Multiplying every value by the same positive factor leaves both ratios unchanged. A nonlinear camera brightness value, an uncorrected detector offset or clipped peaks can change the ratios and needs attention before the calculation.

The ENERGY STAR measurement-method draft gives the percent-flicker and flicker-index formulas on pages 6–7, with measurement considerations earlier in the document. It is a historical 2017 US draft. These descriptive calculations do not turn it into an Australian compliance test or provide a health threshold.

Represent a complete cycle without changing the time weights

For equally spaced samples, each value represents the same time interval. Their arithmetic mean is the time-weighted mean under that discrete representation. Select complete cycles: a cropped interval containing mainly bright or dark parts will change the mean and the area ratio.

For constant segments with different durations, let each optical level be Lᵢ and its positive duration be Δtᵢ. The entered model assumes that level remains constant for its entire segment. Then:

Mean L̄ = Σ(LᵢΔtᵢ) / ΣΔtᵢ

All durations must use the same unit. Seconds and milliseconds give the same ratios when every duration is converted together. This calculation integrates the declared segments exactly; it does not reconstruct an unknown curve between instrument samples. An actual waveform needs adequate sampling and an appropriate measurement method.

Separate amplitude range from area above the mean

The amplitude calculation is:

Percent modulation = 100 × (Lmax − Lmin) / (Lmax + Lmin)

Flicker index uses the same cycle but a different question:

FI = Σ[max(Lᵢ − L̄, 0)Δtᵢ] / Σ(LᵢΔtᵢ)

For an artificial two-level waveform at level 1 for half a cycle and level 3 for the other half, the mean is 2. Percent modulation is 100 × (3 − 1)/(3 + 1) = 50.00%. The area above the mean is (3 − 2) × 0.5 = 0.5, while the total area is 1 × 0.5 + 3 × 0.5 = 2. Flicker index is therefore 0.2500.

For comparison, the ideal continuous waveform L(t) = 2 + sin(t) has the same extrema, 1 and 3, and the same 50% modulation. Over one full cycle its mean is 2, its positive area above the mean is 2 and its total area is 4π. Its analytic FI is 1/(2π) ≈ 0.1592. A finite set of equal-time samples approximates this continuous result; the two-level input does not represent a sine wave simply because the extrema match.

A positive constant and an all-zero signal have different meanings

A constant positive signal has zero modulation and zero FI under these definitions. An all-zero signal has zero denominators, so both ratios are undefined. Zero output is not evidence of a flicker-free operating light. The reported minimum and maximum are also the extrema of the supplied data; insufficient sampling can miss the actual peaks and troughs.

Keep the result with its measurement conditions

Record the operating state, instrument, range, geometry, dark correction, sample rate, bandwidth and selected cycles when comparing lights. The ratios alone contain no frequency weighting and do not calculate PstLM, SVM, a health rating or a camera-safe shutter setting. Camera behaviour also depends on exposure and readout conditions that these inputs do not describe.

A measured dimming curve answers a different question: how steady-state light output and input watts vary with a control setting. A smooth dimming curve does not establish the time waveform at each setting, so retain the waveform measurements alongside any dimming comparison.

Related tools

Measured Dimming Curve Interpolation

Estimate luminaire lm and input W separately within a supplied measured control-setting curve using piecewise linear interpolation.

Inputs and results
Inputs
Measured setting %, initial luminaire lm and input W rows, a setting within their range and matching system conditions.
Results
Interpolated or exact-point lm, W and conditional lm/W; no extrapolation or compatibility judgement.

Illuminance Sample Statistics

Summarise spatial lux or PPFD samples with a supplied reference, or describe daylight occupied-time coverage with missing periods kept explicit.

Inputs and results
Inputs
Same-basis spatial lux/PPFD and represented areas, or daylight-only zone/time records, occupied horizon and user threshold.
Results
Spatial descriptive statistics and reference shares, or daylight area-time coverage bounds, observed mean and recorded exposure.

Browse all lighting tools