Calculate bit error rate (BER) from bit errors and total bits, find expected errors, or see how many bits a zero-error BER test needs at a confidence level.

Compare errors with the total number of bits checked.

Whole bits after conversion. KB, MB and GB use decimal prefixes.

Optional settings

Calculator Functions

FunctionWhat it doesWhat it requires
Bit error ratioFinds the bit error ratio of a testRequires the number of bit errors and the total compared data
Expected bit errorsFinds the average number of errors to expect in a block of dataRequires the bit error ratio and the total compared data
Total bits from errors and BERFinds the amount of data in which an error count corresponds to a given BERRequires a bit error count of at least 1 and the bit error ratio
Zero-error test lengthFinds how many bits must pass with no errors to support a target BER at a chosen confidence levelRequires the target bit error ratio and the confidence level, which starts at 95%

Total compared data is entered in bits, kbits, Mbits, Gbits, bytes, KB, MB or GB, with decimal prefixes and 8 bits per byte. A bit error ratio is entered as a ratio, a percent or parts per million, and results show it in all three forms and as 1 error in N bits. Zero-error test length has one optional setting, the data rate, which adds how long the test runs.

Bit Error Rate Formulas

BER = E ÷ N [1]
BERBit error ratio, between 0 and 1
EBits received in error
NTotal bits compared

Bit error ratio

Three errors in 1,000,000 compared bits is a BER of 3 ÷ 1,000,000 = 3e-6, which is 0.0003%, 3 ppm or 1 error in 333,333 bits. The ratio measured in a test is an estimate of the link’s true error probability, and the estimate improves as more bits are compared [1].

Expected bit errors

E = BER × N

A link with a BER of 1e-6 that carries 5,000,000 bits averages 5 errors. This is a long-run average, so a single transfer can show more or fewer.

Total bits from errors and BER

N = E ÷ BER

Ten errors at a BER of 1e-9 correspond to 10,000,000,000 bits. When the division leaves a fraction, the result also shows the count rounded up to whole bits.

Zero-error test length

N = ln(1 − CL) ÷ ln(1 − p)

p is the target BER and CL is the confidence level as a decimal. The model treats every bit as an independent trial with the same error probability [1], so the chance of seeing no errors in N bits is (1 − p)N. The calculator returns the smallest whole N that pushes that chance down to 1 − CL or less. For a target of 1e-12 at 95% confidence the answer is 2,995,732,273,553 bits, close to 3 ÷ p, which takes 299.57 seconds at 10 Gbps. A target of 1e-9 at 99% needs 4,605,170,184 bits, close to 4.6 ÷ p. The required length grows in proportion to −ln(1 − CL) [1].

Limits of This Estimate

  • The zero-error test assumes independent bit errors and a BER that stays constant for the whole test. Errors that arrive in bursts break that assumption.
  • Passing the test supports the target BER at the stated confidence. It does not show that the true BER is zero.
  • A BER measured from only a few errors is a rough estimate of the long-run value. Expected bit errors and total bits are averages, not counts a real transfer is certain to produce.

Sources

  1. Lightwave, J. Redd (Maxim Integrated Products), Calculating statistical confidence levels for error-probability estimates: BER estimated as detected errors over transmitted bits, the binomial error model and the confidence-level test length