Number of States (n bits) Calculator

States = 2ⁿ

Quick answer: This calculator solves States = 2ⁿ for Number of States. With Number of Bits 1.1, the result is 2.144. It solves in 2 directions, so you can enter the values you have and get the one you need.

Calculator

Loading calculator…

Formula

States = 2ⁿ

Description

Each binary bit doubles the number of distinct values that can be represented, so n bits encode 2 to the n states. This sets the resolution of an ADC or DAC, the number of addressable memory locations from an address bus, the count range of a counter, and the size of any digital code space. It is the most fundamental relationship in digital design.

Variables

SymbolMeaning
StatesNumber of distinct values (codes)
nNumber of bits

Practical Notes

A 10-bit ADC has 1024 levels; a 16-bit address bus reaches 65536 locations. Add one bit to double the range; the maximum unsigned value is 2ⁿ − 1.

Symbols and units

SymbolDefault unitAccepted units
Number of States
Number of Bits

Worked examples

GivenResult
Minimum rangeNumber of Bits 0.055Number of States = 1.039
Low rangeNumber of Bits 0.55Number of States = 1.464
TypicalNumber of Bits 1.1Number of States = 2.144
High rangeNumber of Bits 1.76Number of States = 3.387
Maximum rangeNumber of Bits 17.6Number of States = 198700

Solving for each variable

Solve for GivenResult
Number of StatesNumber of Bits 0.0551.039
Number of BitsNumber of States 0.025-5.322

How Number of States changes with Number of Bits

Number of Bits (input)Number of States (result)
0.111.079
0.2751.21
0.551.464
0.8251.772
1.12.144
1.653.138
2.24.595
4.421.11
7.7207.9
112048

Embed this calculator

Paste this into any page. It keeps working when this page updates, and credits the source.

Frequently asked questions

How do you calculate Number of States (n bits)?

Use States = 2ⁿ. With Number of Bits 1.1, Number of States works out to 2.144.

How do you calculate number of n states?

Rearrange for Number of States: with Number of Bits 0.55, Number of States is 1.464.

What is the formula for Number of States (n bits)?

The formula is States = 2ⁿ. Each binary bit doubles the number of distinct values that can be represented, so n bits encode 2 to the n states.

How do you find Number of Bits when you know the other values?

Rearrange for Number of Bits: with Number of States 0.025, Number of Bits is -5.322.

What does States mean in the Number of States (n bits) formula?

States is Number of distinct values (codes).

What should I watch out for when using Number of States (n bits)?

A 10-bit ADC has 1024 levels; a 16-bit address bus reaches 65536 locations. Add one bit to double the range; the maximum unsigned value is 2ⁿ − 1.