Bit

A bit is the fundamental unit of information in computers. It represents a choice between two values: usually written as 0 and 1.

In computers, a bit represents an on-off state, and we can combine multiple bits to make larger units of information, such as a nibble or byte.

A bit is a binary digit.

Number of values represented by bits

n bits can represent 2^n different values.

For example:

This is because each bit can be in one of two states, and the total number of combinations is 2^n.

Number of bits needed for values

We can also go in reverse (assuming we know how to calculate logarithms):

Common multiples of bits