Math

Bit Shift Calculator

Logical left or right shift of a non-negative integer (mode 0 = left, 1 = right).

Free to use — no sign-up or login.

Result (decimal)

Result (binary)

This free Bit Shift Calculator covers Logical left or right shift of a non-negative integer (mode 0 = left, 1 = right).

Left shift multiplies by 2^k; right shift divides by 2^k (floor). Related math tools sit beside How it works, with no account required.

Using the Bit Shift Calculator

Logical left or right shift of a non-negative integer (mode 0 = left, 1 = right). Typical inputs are a, Shift k and Mode (0 left, 1 right). How it works beside the form states the identity the Bit Shift Calculator applies.

FAQ

How do I use the Bit Shift Calculator?

Open the Bit Shift Calculator, fill a, Shift k and Mode (0 left, 1 right), and read the result. Left shift multiplies by 2^k; right shift divides by 2^k (floor).

What formula does the Bit Shift Calculator use?

The Bit Shift Calculator uses the identity in How it works. In words: Left shift multiplies by 2^k; right shift divides by 2^k (floor).