Free tools Windows power users keep installed
One-click scans. No signup required.
There is no single maximum for a binary number: the answer depends on how many bits it has and whether those bits represent an unsigned or signed integer. With n bits, an unsigned integer tops out at 2n − 1; an n-bit two’s-complement signed integer tops out at 2n−1 − 1. An unlimited-length binary numeral has no finite maximum.
How bit width sets the maximum
A fixed-width value made of n bits has 2n possible bit patterns. For an unsigned integer, every pattern represents a nonnegative value, from 0 through 2n − 1. The maximum is the all-ones pattern.
As an Amazon Associate I earn from qualifying purchases.
For example, the 8-bit pattern 11111111 represents 255 when read as unsigned: 28 − 1.
Crashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteWindows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallUnsigned and signed maximums compared
Most modern signed integers use two’s-complement representation. Its highest-order bit contributes a negative weight, so an n-bit signed integer ranges from −2n−1 to 2n−1 − 1. The same width can therefore represent a smaller positive maximum when signed, in exchange for representing negative values. The GNU C Language Manual describes unsigned values as using the entire space for nonnegative numbers.
#1 Best Overall
| Width | Unsigned maximum | Signed two’s-complement maximum | Signed minimum |
|---|---|---|---|
| 8 bits | 255 | 127 | −128 |
| 16 bits | 65,535 | 32,767 | −32,768 |
| 32 bits | 4,294,967,295 | 2,147,483,647 | −2,147,483,648 |
| 64 bits | 18,446,744,073,709,551,615 | 9,223,372,036,854,775,807 | −9,223,372,036,854,775,808 |
For 8 bits, 01111111 is the largest signed pattern and equals 127. The all-ones pattern, 11111111, is −1 in two’s complement, even though it means 255 when interpreted as unsigned.
Why “binary number” needs a width and interpretation
A string of binary digits alone does not establish a maximum. Without a fixed length, another digit can always be added to make a larger nonnegative numeral. For a fixed-width integer, specify both the bit count and whether the value is signed or unsigned.
These formulas concern integer representations. Floating-point formats also use binary bits, but divide them among sign, exponent, and precision fields; their largest finite values are a separate question.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Scan for outdated or missing drivers - takes under a minute3Clear out junk files and repair common Windows errorsApplying the limits to programming-language types
A mathematical limit for a given width does not automatically tell you the width of a type named int, long, or short. In C, for example, the GNU manual notes that long int can be 32 or 64 bits depending on the system. Check the language rules, platform ABI, and documented limits for the actual type; fixed-width types make the intended width explicit when the language and implementation support them.
Rank #3
As one implementation reference, Microsoft Learn’s C range table, updated August 3, 2021, gives 4,294,967,295 as the maximum for its 32-bit unsigned long and 2,147,483,647 for its 32-bit signed long; it lists 65,535 as the upper bound for unsigned short. These are documented C implementation examples, not universal guarantees for every language or platform. See Microsoft’s range of integer values reference.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.What happens at the maximum
Trying to represent a result beyond a type’s range raises an overflow issue. The precise behavior depends on the language and whether the type is signed or unsigned; do not assume that one language’s rules apply to another. The GNU C Language Manual discusses these representation and arithmetic distinctions at Integer Representations.
Quick Recap
Best Value
Rank #4
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.




