Beginner

Parity Bit Calculator (Even & Odd)

Find the even and odd parity bit for any binary word (or decimal number) and see how many 1 bits it carries.

Input type

How your data word is written
The bits (or number) to protect with a parity bit
Number of 1 bits
4

Even parity bit: 0 • Odd parity bit: 1

4

ones

1 bits

57.1%

0 bits

42.9%

Binary word
1011001
Total bits
7
Even parity bit
0
Odd parity bit
1
Word + even parity
10110010
Word + odd parity
10110011
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

A parity bit is one extra bit appended to a data word for error detection. Count the word’s 1 bits (popcount): the even parity bit equals popcount mod 2 so the total 1s become even, and the odd parity bit is 1 minus that so the total 1s become odd. Parity detects single-bit errors but cannot correct them.

Formula
ones = popcount(word); even parity bit = ones mod 2; odd parity bit = 1 − (ones mod 2)
How this is calculated

A parity bit is a single extra bit appended to a data word so a receiver can detect single-bit transmission errors. The calculator first reads your data word: in binary mode it must contain only 0s and 1s, and in decimal mode it converts a non-negative integer to its binary representation. It then counts the number of 1 bits (the population count, or popcount).

Even parity chooses the extra bit so the total number of 1s in the word plus parity bit is even, which means the parity bit simply equals popcount mod 2. Odd parity does the opposite: it makes the total number of 1s odd, so the odd parity bit is 1 minus the even parity bit. The result panel shows the count of 1s and 0s, both parity bits, and the original word with each parity bit appended at the end.

Parity detects any odd number of flipped bits but cannot detect an even number of errors, nor can it locate or correct the error — for that you need stronger codes such as CRC or Hamming codes. Inputs must be whole, non-negative values; empty input, decimals, or non-binary characters return no result.

Frequently asked questions

Even parity adds a bit so the total count of 1s is even; odd parity adds a bit so the total count of 1s is odd. Both are computed from the same popcount and always differ by one.

No. A single parity bit can only detect an odd number of bit flips. It cannot correct them or detect an even number of flipped bits. Use Hamming or CRC codes for correction.

If the word already has an even number of 1s, popcount mod 2 is 0 and no extra 1 is needed; if it has an odd number, the result is 1, which adds one more 1 to make the total even.

Also known as

parity bit calculator
even odd parity
parity check
error detection bit
parity generator
parity bit

APA

TG we-Calculate Editorial Team. (2026). Parity Bit Calculator (Even & Odd) [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/parity-bit-calculator

Chicago

TG we-Calculate Editorial Team. "Parity Bit Calculator (Even & Odd)." TG we-Calculate. 2026. https://we-calculate.com/calculator/parity-bit-calculator.

IEEE

TG we-Calculate Editorial Team, "Parity Bit Calculator (Even & Odd)," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/parity-bit-calculator

BibTeX

@misc{wecalculate_parity_bit_calculator, title = {Parity Bit Calculator (Even & Odd)}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/parity-bit-calculator}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?