Parity Calculator

Check whether a bit string has even or odd parity. Generate an even or odd parity bit or validate a word that already includes one.

Result
—

How to calculate

Convert the input to binary and count its 1 bits. Even parity has an even count, odd parity has an odd count. Append a 1 only when the current count needs to change.

Worked example

Use Find Classify parity · Expected parity Even · Number base Binary · Number or bit string 11001001. The result is Even.

Input and result notes

Bit parity depends on the number of 1s. Arithmetic parity depends on whether the integer is divisible by two. A single parity bit detects odd numbers of flipped bits.

Omni calculation reference

Related calculators