Maths & numbers

Hamming code parity bit count calculator

Size the parity positions for single-error correction using a binary Hamming code.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Size the parity positions for single-error correction using a binary Hamming code.

THE FORMULAChoose the smallest r with 2ʳ ≥ data bits + r + 1

A worked example

Eleven data bits need four parity bits because 16 ≥ 11+4+1.

Good to know

A separate overall parity bit is needed for the usual SECDED extension.

Read the result

Size the parity positions for single-error correction using a binary Hamming code.

The primary result is labeled “Parity bits”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

A separate overall parity bit is needed for the usual SECDED extension.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

Eleven data bits need four parity bits because 16 ≥ 11+4+1.

Which rule does this calculator apply?

Choose the smallest r with 2ʳ ≥ data bits + r + 1

Find your calculator

Start typing to explore the library.