Parity Bit Calculator
Test cases replayed : 3 of 3 match · Methodology · No outside source listed
Type a binary number (0s and 1s only) to count its 1 bits and get the parity bit for even and for odd parity.
Result
Even parity bit
Digits other than 0 or 1
- Number of 1 bits
- Odd parity bit
Estimate for planning only, not tax, legal, financial or medical advice. This calculator uses the method explained on this page.
This browser did not allow copying. The sentence is in the box below, already selected: copy it with your keyboard or the menu.
How to use this calculator
Fill in the fields in this order; each step takes you to its field.
- Binary data (0s and 1s, up to 15 digits): enter 0 or more.
- Read the result: Even parity bit; the panel also shows Digits other than 0 or 1, Number of 1 bits and Odd parity bit.
How this calculator works
Even parity: the parity bit makes the total number of 1s, data plus parity bit, even, so it equals (number of 1s) mod 2. Odd parity: the total must be odd, so the bit is 1 − (number of 1s mod 2).
A single parity bit detects any odd number of flipped bits but cannot tell which bit flipped, and misses an even number of errors.
Leading zeros do not change the count of 1s, so they can be left out. Digits other than 0 and 1 make the result —.
Worked example
| Binary data (0s and 1s, up to 15 digits) | 1,011,001 |
|---|
| Number of 1 bits | 4 |
|---|---|
| Even parity bit | 0 |
| Odd parity bit | 1 |
| Digits other than 0 or 1 | 0 |
Frequently asked questions
What is the even parity bit for 1011001?
It has four 1s, so the even parity bit is 0 and the odd parity bit is 1.
What is odd parity?
A scheme where the parity bit is chosen so that the total number of 1s, including the parity bit, is odd.