Home · Everyday · Bases, Binary & Logic · Bit Shift Calculator

Bit Shift Calculator

Shift a number's bits left or right — multiply or divide by powers of two, bit by bit.

Your figures

Example result — edit the figures to make it yours

1010

Result (binary shown, value in decimal)

A left shift moves every bit one place up, multiplying by 2 per step (dropping bits that overflow the word). The headline figure is the decimal result.

Decimal result10
Input in binary101

What this calculator does

Shift a number's bits left or right — multiply or divide by powers of two, bit by bit. Where a measure is involved, US and metric units are both accepted — flip the unit toggle and the figures convert with the same definitions the formula uses. Every result on this page is computed from the formula stated below, with no hidden rounding steps.

The formula and method

Left shift ×2 per step; right shift ÷2 per step (arithmetic, sign kept)

Digits are validated against the chosen base — a binary field rejects the digit 2.

Conversion goes through the exact integer value, so results are exact for the sizes accepted.

Negative values keep their sign in every base.

Worked example

With the example inputs this page opens with (value 5, shift by (bits) 1), the result is 1010 — result (binary shown, value in decimal). A left shift moves every bit one place up, multiplying by 2 per step (dropping bits that overflow the word). The headline figure is the decimal result.

Quick reference

Quick reference — varying value
ValueResult (binary shown, value in decimal)
2.5110
41000
51010
6.251100
7.510000
1010100

Computed with the same formulas as the calculator above — enter any values there for figures beyond this table.

Common questions

How does the Bit Shift Calculator work?

Shift a number's bits left or right — multiply or divide by powers of two, bit by bit. Value · Amount · Direction → Shifted value. The result updates as you type, and the formula and method on this page state the exact definitions used, so you can reproduce the calculation by hand.

What inputs does the Bit Shift Calculator need?

Value · Amount · Direction → Shifted value. Invalid entries — such as a zero denominator, an out-of-range value or a malformed list — produce a plain-language message instead of a misleading number.

Is the Bit Shift Calculator free to use?

Yes. It runs entirely in your browser with no sign-up, and the same calculator is available as an embeddable widget via the Embed button, so it can be placed on another site with its calculation intact.