Three level pairs show that a line gap is always upper energy minus lower energy. Exact arithmetic here means exact results for the stated model inputs; measured inputs still carry uncertainty and significant-figure limits.

highlighted = computed this step

ground to middle subtracts the lower level

The lower level is 0 joules and the upper level is 4 joules, so this row's line gap is 4 joules.

ΔE=40=4 J\Delta E=4 - 0=4\ \mathrm{J}
Gap scan rowEach subtraction cites the same ordered level ledger.groundmiddlegap=4 Jupper minus lowerlowerupper4

middle to upper subtracts the lower level

The lower level is 4 joules and the upper level is 9 joules, so this row's line gap is 5 joules.

ΔE=94=5 J\Delta E=9 - 4=5\ \mathrm{J}
Gap scan rowEach subtraction cites the same ordered level ledger.middleuppergap=5 Jupper minus lowerlowerupper5

upper to top subtracts the lower level

The lower level is 9 joules and the upper level is 15 joules, so this row's line gap is 6 joules.

ΔE=159=6 J\Delta E=15 - 9=6\ \mathrm{J}
Gap scan rowEach subtraction cites the same ordered level ledger.uppertopgap=6 Jupper minus lowerlowerupper6