How to use the Parity Calculator tool
- Paste the word to inspect into the Binary digits box. Include the parity bit if you are checking a complete frame.
- Select Convert. Select Example to analyze the sample word 01001101.
- Read the Result box, which shows the number of set bits followed by even parity or odd parity.
- Select Copy to copy the line, or Clear to test another word.
What the parity of a binary word is
The parity of a word is whether it contains an even or an odd number of 1 bits. It is the count of set bits reduced modulo 2, and equally the XOR of every bit in the word: XOR-ing all bits together leaves 0 for even parity and 1 for odd.
This page reports the parity of exactly what you enter. It does not generate a parity bit. If you need the bit to append to data, use the Even parity Calculator or the Odd parity Calculator, which each return a single 0 or 1.
Worked example: checking a frame with the parity calculator
The sample 01001101 contains four 1s, so the tool prints 4 set bits · even parity. Suppose a sender adds an even parity bit, which is 0 here, and transmits 010011010. The receiver pastes all nine bits and should again see even parity. If one bit flips in transit, the count becomes odd and the error is visible.
01001101 → 4 set bits · even parity
010011010 → 4 set bits · even parity (frame intact)
010010010 → 3 set bits · odd parity (one bit flipped)Reading the result and input rules
The output always has the form N set bits, a middle dot, then even parity or odd parity. The wording is fixed, so a word with a single 1 reads 1 set bits · odd parity. A word of only zeros has 0 set bits and even parity.
- Digits 0 and 1 only, from 1 to 65,536 of them.
- Whitespace between groups and a 0b prefix are stripped before counting.
- Leading zeros never change the count or the parity.
- Any other character, or an empty box, gives the error Enter between 1 and 65,536 binary digits.
Where parity checks are used
Parity is the cheapest error-detecting code: one extra bit protects a whole word against any single-bit error. Serial links such as RS-232 offer it as a frame option, older memory modules stored a ninth parity bit for every byte, and 7-bit ASCII was often sent with an eighth parity bit.
The same XOR idea scales up. RAID 5 keeps a parity block that is the XOR of the data blocks in a stripe, which lets the array rebuild one failed disk. In code, GCC and Clang offer __builtin_parity, and popcount(x) AND 1 gives the same answer.
Frequently asked questions
How do I know if a binary number has even or odd parity?
Count its 1 bits. An even count, including zero, is even parity, and an odd count is odd parity. This calculator does the counting and prints both the count and the verdict.
Does the calculator add a parity bit to my data?
No. It only reports the parity of the bits you entered. The even and odd parity generators on this site return the bit to attach, and where it goes in the frame is up to your protocol.
How do I verify received data with this tool?
Paste the data bits and the parity bit together as one word. Under an even parity scheme the result must say even parity, and under an odd scheme it must say odd parity. Any other outcome means at least one bit is wrong.
Why does the result say 1 set bits?
The label text does not change with the count, so it is not pluralized. The number in front is still correct: the word contains exactly one 1 and therefore has odd parity.
Can parity miss an error?
Yes. Two flipped bits, or any even number of them, leave the parity unchanged, so the check passes. Parity is a detection aid for rare single-bit faults.
Is parity the same as popcount?
Not quite. Popcount is the full count of 1 bits, and parity is only whether that count is even or odd, its lowest bit. This tool shows both.