Maths & numbers

Bitwise operations on unsigned integers calculator

Evaluate the three common bitwise operations on two 16-bit unsigned words.

Your numbers

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Evaluate the three common bitwise operations on two 16-bit unsigned words.

THE FORMULACompare corresponding bits for AND, OR and XOR

A worked example

12 and 10 have AND 8, OR 14 and XOR 6.

Good to know

Values are unsigned. Leading zeros do not change the integer.

Read the result

Evaluate the three common bitwise operations on two 16-bit unsigned words.

The primary result is labeled “AND”. Keep the input definitions in view when comparing this result with another method.

Try a related calculation

Values are unsigned. Leading zeros do not change the integer.

For a related exercise, try the greatest common divisor.

A few questions, answered

How can I check the default inputs by hand?

12 and 10 have AND 8, OR 14 and XOR 6.

Which rule does this calculator apply?

Compare corresponding bits for AND, OR and XOR

Find your calculator

Start typing to explore the library.