Math
Bit Shift Calculator
Shift an integer's bits left or right.
Did this calculator solve your problem today?
✓ Thank you for your feedback!
Report issue to loopingon.com
Sponsored
Shifting bits left or right is a fast way to multiply or divide by powers of two.
The math behind it
A left shift by n multiplies by 2ⁿ; a right shift by n divides by 2ⁿ (discarding remainder bits).
Worked Example
5 (101) << 2 = 20 (10100).
Frequently Asked Questions
Why use bit shifts?
They are much faster than multiplication or division on most processors.
Advertisement