Hamming Distance
Calculate Hamming Distance instantly with the exact formula and a worked example.
Hamming Distance
Number A (integer)
Number B (integer)
Hamming distance
2bits
A in binary
11101
B in binary
01111
A XOR B
10010
More about: Hamming Distance
What it calculates
The “Hamming Distance” calculator computes Hamming distance in bits from 2 parameters: number a (integer), number b (integer).
Standard IT calculations for developers and sysadmins.
Example calculation
With parameters Number A (integer) = 29, Number B (integer) = 15 the result is 2 bits.
How to use
- Enter number a (integer) and number b (integer) — each field above is adjustable with a slider.
- Hamming distance (bits) is calculated automatically as you type.
- Check the worked example below to see the formula applied to real numbers.
- Copy the result or bookmark this calculator.
Related calculators
FAQ
How is Hamming Distance calculated?
The Hamming Distance calculator computes Hamming distance (in bits) from number a (integer), number b (integer). Enter your values above and the exact formula is applied instantly; a worked example with real numbers is shown below.
Is the Hamming Distance calculator free?
Yes. It is completely free, needs no signup, runs entirely in your browser, and sends no data to any server.
More calculators in this category
Explore related free tools