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
| Symbol | Meaning |
|---|---|
| States | Number of distinct values (codes) |
| n | Number 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
| Symbol | Default unit | Accepted units |
|---|---|---|
| Number of States | ||
| Number of Bits |
Worked examples
| Given | Result | |
|---|---|---|
| Minimum range | Number of Bits 0.055 | Number of States = 1.039 |
| Low range | Number of Bits 0.55 | Number of States = 1.464 |
| Typical | Number of Bits 1.1 | Number of States = 2.144 |
| High range | Number of Bits 1.76 | Number of States = 3.387 |
| Maximum range | Number of Bits 17.6 | Number of States = 198700 |
Solving for each variable
| Solve for | Given | Result |
|---|---|---|
| Number of States | Number of Bits 0.055 | 1.039 |
| Number of Bits | Number of States 0.025 | -5.322 |
How Number of States changes with Number of Bits
| Number of Bits (input) | Number of States (result) |
|---|---|
| 0.11 | 1.079 |
| 0.275 | 1.21 |
| 0.55 | 1.464 |
| 0.825 | 1.772 |
| 1.1 | 2.144 |
| 1.65 | 3.138 |
| 2.2 | 4.595 |
| 4.4 | 21.11 |
| 7.7 | 207.9 |
| 11 | 2048 |
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.