# Odd Parity Calculator (Generator and Checker)

URL: https://speedycalculator.com/calculators/other/odd-parity/
Last updated: 2026-11-08

> The odd parity calculator finds the odd parity bit that makes the total number of 1s in a binary message odd, places it at the end or any position, and verifies received messages against odd parity, for single messages or a list of bytes.

## Inputs

- What to do
- Binary message — Several messages (e.g. bytes) can be separated by spaces.
- Parity bit position — 0 = at the end. Otherwise the position counted from the left (1 = first bit).

## Results

- Result
- Verdict
- Parity bit(s)
- Number of 1s in the input
- Messages
- Message by message

## Formula

```
Odd parity bit = 1 − (number of 1s in the data mod 2)
Valid message: total number of 1s (data + parity bit) is odd
```

## Explanation

With odd parity the sender adds one bit so that the transmitted message always contains an odd number of 1s. If the data has an even number of 1s (including none), the parity bit is 1; if it has an odd number, the parity bit is 0. The odd parity bit is therefore just the inverse of the even parity bit, or the XNOR of all data bits.

The main practical advantage of odd parity is that a message of all zeros is never valid: every correct word contains at least one 1. A stuck line that delivers only zeros (a disconnected cable or a dead chip) is therefore detected immediately, which is why odd parity was popular in early computers, magnetic tape and memory systems and is still selectable as 7O1 or 8O1 on serial ports.

Odd parity shares the limits of every single-bit parity scheme: it detects any odd number of bit errors but misses an even number, and it cannot locate the faulty bit. For correction, look at Hamming codes.

### How to use the Odd Parity Calculator

- **What to do**
- **Binary message**: Several messages (e.g. bytes) can be separated by spaces.
- **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; the parity bit is 1 when the count is even and 0 when it is odd. In check mode a message passes when its total number of 1s, including the parity bit, is odd.

### Worked example

Message **111001** contains four 1s (an even number), so the odd parity bit is 1 and the transmitted message is **1110011** with five 1s. If the bit should go first instead (position 1), the result is 1111001.

### Odd parity truth table for 3 bits

Data000001010011100101110111Parity bit10010110

## Worked example

Inputs: What to do: Generate – add a parity bit; Binary message: 111001; Parity bit position: 0.

Results: **Result = 1110011**; Verdict = Parity bit added for odd parity – every message now has an odd number of 1s; Parity bit(s) = 1; Number of 1s in the input = 4; Messages = 1; Message by message = Message 1s Parity bit Transmitted
───────────────────────────────────────
111001 4 1 1110011.

## Key terms

- **Odd parity**: Convention in which every valid message has an odd number of 1s.
- **XNOR**: The inverse of XOR; the XNOR of the data bits equals the odd parity bit.
- **7O1 / 8O1**: Serial settings with odd parity.

## FAQ

**How do I calculate an odd parity bit?**
Count the 1s. If the count is even the bit is 1, if it is odd the bit is 0.

**What is the odd parity bit of 111001?**
It has four 1s, so the bit is 1 and the message becomes 1110011.

**What is the odd parity bit of 0000000?**
1. With odd parity an all-zero message is never valid.

**Why use odd instead of even parity?**
Odd parity catches a line stuck at 0, because an all-zero word always fails the check.

**Is 1011 valid with odd parity?**
It contains three 1s, an odd number, so yes.


## Sources

- [Wikipedia: Parity bit](https://en.wikipedia.org/wiki/Parity_bit)
- [Wikipedia: Serial port (parity settings)](https://en.wikipedia.org/wiki/Serial_port)
