Parity Bit Calculator

Compute even or odd parity bits for any binary data. Shows the combined payload + parity bit and detects single-bit errors.

Calculator Electronics Updated Apr 18, 2026
How to Use
  1. Enter binary, hex, or decimal data.
  2. Pick even or odd parity.
  3. The tool appends the parity bit and reports whether the count of 1s is correct.
Input
Presets
Bit Pattern
Parity Bit
1-count
Transmitted
Type

Show Work

Enter data.

How Parity Works

Even Parity
Pick P so total 1s = even
P = XOR of all data bits.
Odd Parity
Pick P so total 1s = odd
P = NOT(XOR of data).
Single-bit Error
Flips 1s count by 1
Parity now wrong — flag it.
Double-bit Error
1s count still same parity
Undetectable with single parity bit.
Overhead
1 extra bit per data word
Cheapest error detection.
Correction
None — detect only
For correction, use Hamming or CRC.

History of Parity Bits

The parity check as an error-detection mechanism dates to the earliest punched-card systems of the 1890s — IBM\'s Herman Hollerith tabulating machines used row-count parity to flag misread cards. Teletype machines in the 1920s introduced serial-line parity: add one extra bit per character so the receiver could detect single-bit transmission errors and request retransmission. This became standardized in the ITU-T V-series modem specifications.

Early computer memory in the 1950s–70s used "parity RAM" — each byte paired with a parity bit to flag soft errors from cosmic rays or alpha-particle strikes. When the CPU detected a parity mismatch, it halted with an NMI or machine-check exception rather than continuing with corrupted data. Modern ECC RAM replaces this with SEC-DED Hamming codes, which correct single-bit errors instead of just detecting them.

Today parity persists in lightweight protocols: the UART\'s optional parity bit (8E1, 8O1, 8N1 format strings), barcode check digits, ISBN numbers (the last digit is a mod-11 parity), and credit card numbers (Luhn algorithm, effectively a weighted parity). For serious error detection, CRC or Hamming codes are better — but parity remains the cheapest possible error check, costing one extra bit per word.

About This Calculator

Enter data in binary (with 0b prefix), hex (0x prefix), or plain decimal. Pick even or odd parity. The tool computes the single parity bit needed to satisfy the chosen convention, shows the count of 1s, and displays the transmitted value with the parity bit appended.

Remember parity only reliably catches odd-count bit errors (1, 3, 5 flips). For communication-channel reliability, combine parity with retransmission protocols (ACK/NAK), or switch to CRC for burst-error detection. All math runs client-side; no values leave your browser.

Frequently Asked Questions

What is parity?

A single bit added to binary data to make the total number of 1s even (even parity) or odd (odd parity). Detects single-bit errors — any one flipped bit changes parity.

What can it detect?

Any odd number of bit errors (1, 3, 5, ...). Even-count errors are missed. Parity is the simplest error detection but far from foolproof for burst errors.

Where is it used?

UART serial (optional parity), early computer memory, simplest CRC/checksum alternative. Rarely used alone in modern systems — Hamming or CRC replaces it where errors matter.

Common Use Cases

UART Communication

8N1, 7E1, 8O1 protocol formats include optional parity.

Memory Integrity

Early PC RAM chips used parity memory to flag single-bit errors.

Barcodes

Many barcode formats include a parity/checksum digit.

Last updated: