With this tool, you'll be able to calculate the even parity bit of a binary number and help you detect if there's an error in the transmission of a message. No matter if you're the sender or the receiver: you can use this tool as an even parity checker or even parity generator (for 3 bits, 4 bits, or the number of bits you want).
What is even parity?
A parity bit is one of the ways the sender of a message can inform its receiver if there is (or is not) an error in the transmission (more precisely, in the binary numbers that compose it). Even and odd parity are the two types of parity bits the sender and the receiver can accord before transmitting the message.
How to calculate an even parity bit?
We have two ways to calculate the even parity bit of a binary message:
- By counting the number of ones in the binary number and applying some rules:
- If the number of 1s is even, the parity bit is 0; and
- If the number of 1s is odd, the parity bit is 1.
- The other way to calculate the even parity bit is by counting the number of ones in the binary number and computing the modulo 2 of that number (visit our modulo calculator to learn what a modulo is).
For example, let's calculate the even parity bit of
- Let's sum the 1s present in the number:
(1 + 1 + 1 + 1) = 4
- As the number of 1s is even, the parity bit is
0. You can also calculate the even parity bit with the modulo:
4 mod 2 = 0.
If you want to calculate odd parity bits (and learn more about parity bits, in general), visit the calculators linked in the following section.
How to use our even parity bit calculator?
Our even parity bit calculator has two modes, both of them useful — in slightly different ways! You can select the mode on top of the calculator:
generatemode, you can input a binary message of arbitrary length and insert the parity bit in a position of your choice. Fill the field
positionwith the desired place of your parity bit, or leave it empty: the calculator will insert the bit at the end of the message, generating an even parity message.
checkmode, insert a binary message. Our calculator will check if the number of
1s in your message is even. If not, we will tell you that your message has the wrong parity.
If you click on the advanced mode of the calculator, you'll be able to switch to the other type of parity: odd parity.
Other odd and even parity generators and checkers
What is the even parity bit for 1001011?
The even parity bit is 0, and the encoded message is 10010110. To calculate the even parity of 1001011, sum the ones in the binary number and compute the modulo 2 of that sum:
(1 + 1 + 1 + 1) mod 2 = 4 mod 2 = 0
What is the difference between even parity and odd parity?
We calculate even and odd parity bits by counting the number of 1s in the binary number, with the difference that:
- For even parity, if the number of 1s is even, the parity bit is 0; otherwise, it is 1.
- For odd parity, if the number of 1s is even, the parity bit is 1; otherwise, it is 0.