Parity Bit Calculator (Even and Odd)

Quick answer

The parity bit calculator adds an even or odd parity bit to a binary message (at the end or any position you choose) or checks a received message for a parity error. Several bytes can be processed at once, each with its own parity bit.

Several messages (e.g. bytes) can be separated by spaces.

0 = at the end. Otherwise the position counted from the left (1 = first bit).

Result
11011
Verdict
Parity bit added for even parity – every message now has an even number of 1s
Parity bit(s)
1
Number of 1s in the input
3
Messages
1
Message by message
Message 1s Parity bit Transmitted ─────────────────────────────────────── 1101 3 1 11011

A parity bit is the simplest error-detecting code: one extra bit chosen so that the total number of 1s in the message is even (even parity) or odd (odd parity). The receiver counts the 1s again; if the count has the wrong parity, at least one bit was corrupted on the way. It costs only one bit per message, which is why parity has been used for decades in serial communication (UART settings such as 7E1 or 8O1), in memory modules, in RAID 5 and in punched tape.

The weakness is just as simple. Two flipped bits (or any even number) cancel out and the message still looks valid, and even when an error is detected there is no way to tell which bit is wrong. The minimum Hamming distance between valid messages is only 2, so a parity bit detects but cannot correct. More parity bits arranged cleverly give a Hamming code, which can locate and fix the error.

Choose generate to compute the bit for one or more messages, or check to verify messages you received. By default the parity bit is the last bit; enter a position to place or read it elsewhere, as some protocols put it first.

How to use the Parity Bit Calculator

  1. What to do
  2. Type of parity
  3. Binary message: Several messages (e.g. bytes) can be separated by spaces.
  4. Parity bit position: 0 = at the end. Otherwise the position counted from the left (1 = first bit).

Everything is calculated in your browser, so results appear instantly and nothing you type is sent to a server.

How it works

For each message, the 1s are counted. In generate mode the parity bit is the count modulo 2 (inverted for odd parity) and is inserted at the chosen position. In check mode the total count is tested against the expected parity, and the data bits are shown without the parity bit.

Worked example

Message 1101, even parity: it contains three 1s, an odd number, so the parity bit is 1 and the message sent is 11011 (four 1s). If the receiver gets 11111, it counts five 1s (odd) and knows an error occurred, but not where. With odd parity the bit would be 0 (11010).

Parity bits for some bytes

Byte 1s Even parity bit Odd parity bit
00000000 0 0 1
01000001 (A) 2 0 1
01000011 (C) 3 1 0
11111111 8 0 1

Formula

Even parity bit = (number of 1s) mod 2 · Odd parity bit = 1 − (number of 1s mod 2) Check: even parity is correct if the total count of 1s (including the parity bit) is even

Worked example

Inputs: What to do: Generate – add a parity bit; Type of parity: Even parity; Binary message: 1101; Parity bit position: 0.
Results: Result = 11011; Verdict = Parity bit added for even parity – every message now has an even number of 1s; Parity bit(s) = 1; Number of 1s in the input = 3; Messages = 1; Message by message = Message 1s Parity bit Transmitted
───────────────────────────────────────
1101 3 1 11011.

Key terms

Parity bit
An extra bit that makes the number of 1s even or odd.
Even parity
The total number of 1s, including the parity bit, is even.
Odd parity
The total number of 1s, including the parity bit, is odd.
Hamming weight
The number of 1s in a binary string.

Frequently asked questions

What is the even parity bit of 1101?

1101 has three 1s (odd), so the even parity bit is 1 and the transmitted message is 11011.

What is the odd parity bit of 1101?

0, because three 1s is already odd: 11010.

How do I check a received message?

Count all 1s including the parity bit. With even parity the count must be even; with odd parity, odd.

Can a parity bit detect two errors?

No. Two flipped bits leave the count of 1s with the same parity, so the error goes unnoticed: a single parity bit only detects an odd number of errors.

Can a parity bit correct an error?

No, it only signals that something is wrong. Correction needs more redundancy, such as a Hamming code.

What does 8E1 mean on a serial port?

8 data bits, even parity, 1 stop bit; 8N1 means no parity.

Where should the parity bit go?

Usually after the data bits, but the position does not change the calculation. Both sides just need to agree.

Sources

  1. Wikipedia: Parity bit
  2. Texas Instruments: KeyStone UART user guide (parity configuration)

Cite this calculator

Speedy Calculator. (2026). Parity Bit Calculator (Even and Odd). Speedy Calculator. https://speedycalculator.com/calculators/other/parity-bit/