⚡ Free Bitwise Calculator

Binary Right Shift Calculator

Use the free Binary Right Shift Calculator to move a binary number right by any number of positions. A logical right shift removes bits from the right side; for a non-negative unsigned integer, shifting right by n positions corresponds to integer division by 2ⁿ.

✓ Free Unlimited Use ✓ Instant Result ✓ Exact Binary Output ✓ No Signup ✓ Mobile Friendly
>>
Binary Right Shift
● Ready
0 and 1 only
Whole number
Enter a binary number and how many positions it should move right.
Try:
✓ Right Shift Result
Unsigned logical binary right-shift result
Shift Positions 0
Original Bits 0
Bits Removed 0

What Is a Binary Right Shift?

A binary right shift moves the bits of a binary value toward lower place values. In an unsigned logical right shift, bits removed from the right side are discarded.

The operation is commonly written with the >> symbol. For example, shifting 101100 right by two positions gives 1011.

Original: 101100 Shift right by 2: 101100 >> 2 = 1011

Bits move right

Each shift moves the existing significant bits one position toward a lower power of two.

Rightmost bits are removed

Bits that pass beyond the least-significant side no longer contribute to the unsigned result.

How to Calculate a Binary Right Shift

Write the original binary number

For example, begin with 101100.

Choose the shift amount

Decide how many positions the bits should move toward the right.

Move the bits right

Each shift lowers the binary place value of the remaining significant bits.

Discard bits leaving the right side

Any bit moved beyond the least-significant position is removed.

Read the remaining value

If all significant bits are removed, the numerical result is zero.

Worked Example: 101100 >> 2

Start with binary 101100, which represents decimal 44.

Original: 101100 After one right shift: 10110 After the second right shift: 1011 Final result: 101100 >> 2 = 1011

Binary 1011 equals decimal 11, which agrees with integer division: 44 divided by 4 equals 11.

Binary Right Shift Examples

Binary Number Shift Result
101 0 101
1010 1 101
101100 1 10110
101100 2 1011
1110000 3 1110
100000 5 1
100000 6 0

Why Right Shift Divides by Powers of Two

For a non-negative unsigned integer, moving every bit one position to the right corresponds to integer division by 2. Two positions correspond to division by 4, while three positions correspond to division by 8.

General unsigned rule: x >> n = floor(x / 2ⁿ)

The floor operation matters whenever the original value is not exactly divisible by the corresponding power of two.

Unsigned rule: a logical right shift by n positions corresponds to integer division by 2ⁿ.

Right Shift by One Position

One right shift removes the lowest binary position and divides a non-negative unsigned value by 2 using integer division.

101100 >> 1 = 10110 Decimal: 44 / 2 = 22 And: 10110₂ = 22₁₀

Right Shift by Two Positions

A two-position logical right shift removes the two rightmost positions and corresponds to unsigned integer division by 4.

101100 >> 2 = 1011 Decimal verification: 44 / 4 = 11

Right Shift by Three Positions

1110000 >> 3 = 1110 Decimal: 1110000₂ = 112₁₀
112 / 8 = 14
1110₂ = 14₁₀

What Happens When You Shift Right by 0?

A shift count of zero means no movement occurs. Therefore the result is the same binary value.

101101 >> 0 = 101101

What Happens If the Shift Is Larger Than the Binary Length?

When an unsigned value is shifted far enough that all significant bits leave the right side, its numerical result becomes zero.

1011 >> 4 = 0
1011 >> 5 = 0

BinaryCon therefore displays 0 rather than an empty result when the complete bit pattern has been shifted away.

Right Shift and Odd Binary Numbers

An unsigned right shift performs integer division, so a fractional remainder is discarded.

Binary: 1011₂ = 11₁₀ Shift right once: 1011 >> 1 = 101 Decimal: floor(11 / 2) = 5 And: 101₂ = 5₁₀

The discarded least-significant bit corresponds to the lost remainder.

Why the Rightmost Bits Matter

The rightmost bit is the least significant bit. It represents 2⁰, or decimal 1. The next bit represents , or decimal 2.

When bits are shifted out from the right side, their contribution is discarded from the resulting integer value.

Logical Right Shift vs Arithmetic Right Shift

This distinction is especially important when working with signed integers. A logical right shift normally introduces zeros from the left, while an arithmetic right shift can preserve the sign bit for a signed value.

Logical right shift

Treats the value as an unsigned bit pattern and brings zeros into newly opened high-order positions.

Arithmetic right shift

Often copies the sign bit into new high-order positions so a signed two’s-complement value keeps its sign.

Important: this BinaryCon calculator focuses on non-negative binary values and unsigned logical right-shift behavior. Programming languages can define signed shifts differently.

Right Shift vs Left Shift

Operation Direction Unsigned Numeric Effect
Left Shift Bits move left Multiply by powers of 2 when no overflow occurs
Right Shift Bits move right Integer divide by powers of 2

Can Left Shift Undo a Right Shift?

Not always. A right shift can permanently discard bits from the right side. Once those bits are removed, simply shifting left cannot reconstruct them.

Original: 1011 Right shift: 1011 >> 1 = 101 Shift that result left: 101 << 1 = 1010

The result is 1010, not the original 1011, because the last 1 was discarded during the right shift.

Right Shift in Programming

Bitwise right-shift operators are common in programming languages, but their exact behavior can depend on the language, integer representation, signedness, and operand width.

Conceptually for non-negative integers: 44 >> 1 = 22
44 >> 2 = 11
44 >> 3 = 5

The final example gives 5 because 44 divided by 8 equals 5.5 and the discarded low-order bits remove the remainder.

Where Is Binary Right Shift Used?

Bit Extraction

Move a selected group of higher-order bits toward the low-order positions before applying a mask.

Packed Data

Extract fields stored within larger binary or integer structures.

Embedded Systems

Read selected hardware-register fields and reposition control bits.

Powers-of-Two Division

For unsigned values, shifting provides the binary equivalent of integer division by powers of two.

Encoding and Decoding

Move packed fields into useful positions before conversion or interpretation.

Computer Science Learning

Study bit positions, integer division, binary representation, and low-level data manipulation.

Using Right Shift with a Bitmask

Right shift and AND are often combined when extracting a field from a packed binary value.

Suppose a field is located above the lowest bits: 11010110 Shift right: 11010110 >> 4 = 1101

A mask can then isolate only the positions required by a particular data format or program.

Leading Zeros and Right Shift

Leading zeros do not change the unsigned numerical value of a binary number. They can, however, be useful when showing a fixed-width representation.

001011₂ = 1011₂ = 11₁₀

This calculator accepts the entered bit pattern and performs the right shift directly on it. The displayed result represents the remaining binary sequence, with a result of 0 when all bits have been removed.

Common Binary Right Shift Mistakes

Moving bits in the wrong direction

A right shift moves bits toward the least-significant side, not toward the left.

Adding zeros to the right

Appending zeros on the right describes a left shift. A right shift discards bits from the right side.

Forgetting integer division

Unsigned right shifting does not retain fractions or remainders.

Confusing logical and arithmetic shifts

Signed arithmetic right shifts can preserve a sign bit, while this calculator uses unsigned logical behavior.

Assuming removed bits can always be recovered

Once a right shift discards low-order bits, the information contained in them is lost.

Related BinaryCon Tools

Continue with other shift, mask, and bitwise calculators.

Binary Right Shift Calculator FAQs

What is a binary right shift?
A binary right shift moves the bit pattern toward lower place values. In an unsigned logical shift, bits that leave the right side are discarded.
What does >> mean?
The >> notation commonly represents a right-shift operation in programming and bitwise calculations.
What is 101100 >> 1?
The result is 10110.
What is 101100 >> 2?
The result is 1011.
What is 1110000 >> 3?
The result is 1110.
What happens when I right shift by zero?
Nothing changes. A zero-position shift returns the original binary value.
Does right shift divide a number by 2?
For a non-negative unsigned integer, one logical right shift corresponds to integer division by 2.
What does right shift by 2 divide by?
It corresponds to unsigned integer division by 4, because 2² = 4.
What does right shift by 3 divide by?
It corresponds to unsigned integer division by 8.
What is the right-shift formula?
For a non-negative unsigned integer, x >> n = floor(x / 2ⁿ).
Why does right shifting an odd number lose information?
The least-significant bit can represent the remainder after division by 2. When that bit is shifted out, the remainder is discarded.
What happens if I shift farther than the number’s length?
Once every significant bit has been shifted away, the numerical result is zero.
Is right shift always reversible?
No. Bits discarded from the right side are lost, so a later left shift cannot necessarily reconstruct the original value.
What is the difference between logical and arithmetic right shift?
A logical right shift is associated with zero-filled unsigned behavior, while an arithmetic right shift can preserve the sign of a signed integer by extending its sign bit.
Does BinaryCon perform signed arithmetic right shift?
No. This calculator is designed for non-negative binary input and demonstrates unsigned logical right-shift behavior.
Do leading zeros change a right-shift value?
Leading zeros do not change an unsigned numerical value, although they can be meaningful when displaying a fixed-width bit pattern.
Can BinaryCon shift long binary numbers?
Yes. The calculator processes the entered binary string directly instead of converting the complete value to an ordinary floating-point number.
How is right shift used with bitmasks?
A right shift can move a packed bit field into a lower position, after which AND can isolate only the required bits.

Calculate Binary Right Shift Instantly

Use BinaryCon to shift binary values right, understand integer division by powers of two, extract bit fields, compare logical and arithmetic shifts, and verify your calculations with clear worked examples.

Scroll to Top