Parity Bit Calculator

Append an even or odd parity bit to a binary word for simple error detection.

Technology and NetUpdated 2026-11-192 min read
Parity Bit Calculator
A string of 1 to 32 zeros and ones.
Codeword with parity bit
...
Parity bit added...
Ones in data...
Parity type used...

What it does

A parity bit is the simplest form of error detection. One extra bit is appended to a binary word so that the total number of ones is always even or always odd, depending on the chosen convention.

This tool counts the ones in the data, chooses the parity bit that satisfies the selected rule, and shows the resulting codeword. The page opens with 1011001 and even parity.

That data word has four ones, which is already even, so the even parity bit is 0 and the codeword is 10110010. With odd parity the added bit would be 1, giving 10110011.

If a single bit is corrupted in transit, the received word has the wrong parity and the error is detected. The scheme cannot tell which bit changed, and it misses any even number of flips.

Parity is still used in simple interfaces and memory systems because it costs only one bit, even though stronger checks such as CRC and Hamming codes detect or correct more errors.

How to use

  1. Enter a string of zeros and ones.
  2. Choose even or odd parity.
  3. Read the codeword as the main result.
  4. Check the parity bit that was added.
  5. Use the ones count to verify the choice by hand.
  6. Switch parity type to see the complementary bit.

Formula

Even parity bit = number of ones mod 2; odd parity bit = 1 minus (number of ones mod 2)
ones
Count of one bits in the original data.
parity bit
The single appended bit that makes the total even or odd.
codeword
The original data followed by the parity bit.

With even parity the appended bit equals the ones count modulo 2. With odd parity it is the complement. A received word is accepted when its ones count has the expected parity and rejected otherwise.

Worked example

Example: 1011001 with even parity

The page opens with data 1011001 and even parity.

  1. Count the ones: the word has four ones.
  2. Four is even, so the even parity bit is 0.
  3. Append the bit to get the codeword 10110010.
  4. The total number of ones in the codeword is still four, which is even.
  5. Switch to odd parity and the bit becomes 1, giving 10110011.
  6. The tool reports codeword 10110010 and parity bit 0.

Reference table

Parity bits for sample data words
DataOnesEven codewordOdd codeword
101100141011001010110011
101100031011000110110000

Limits

  • Accepts 1 to 32 binary digits.
  • Detects an odd number of bit flips only.
  • Does not identify which bit was changed.
  • Assumes the parity bit itself may also be corrupted.

Common mistakes

  • Choosing the parity bit from the number of zeros instead of ones.
  • Assuming two flipped bits will be detected.
  • Expecting the code to correct errors.
  • Placing the parity bit at the front when the tool appends it at the end.
  • Entering characters other than 0 and 1.

Try it yourself

Quick checks. Answers sit tucked under each question.

Data 1011001 with odd parity. Codeword?

10110011, since four ones need one more to make the count odd.

Data 1011000 with even parity. Codeword?

10110001, since three ones need one more to make the count even.

What error pattern goes undetected?

Any even number of flipped bits.

Questions

What is a parity bit?

An extra bit added so the total number of ones is even or odd.

Which errors does it detect?

Any odd number of bit flips, including a single flip.

Can it correct errors?

No. It only signals that something changed.

What is the overhead?

One bit per word, so eight data bits become nine transmitted bits.

Why use even parity?

It is a common convention, and the choice only changes which bit is appended.

Are stronger codes available?

Yes. CRC detects more patterns and Hamming codes can correct single errors.

Sources

How this page was checked. The formula above was matched against the cited sources, and the worked example was run through the tool on this page before publishing. If you spot an error, contact us so we can fix it and note the correction.