65,536
65,536 is 2¹⁶ — the number of values a 16-bit field can hold, and the size of the Unicode Basic Multilingual Plane.
Where 65,536 fits
Why 65,536 is special
65,536 was supposed to be enough for every character in every language. Unicode's original design gave each character 16 bits, and when that proved too small the answer was surrogate pairs rather than a wider default — which is why 65,536 is still the boundary where text handling gets complicated. The same number caps TCP and UDP port numbers at 65,535.
65,536 is part of
Factors & digit properties
- Divisors (17)
- 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536
- Prime factorisation
- 2^16
- Digit sum
- 25
- Digital root
- 7
Representations
- Decimal
- 65536
- Scientific notation
- 6.554 × 10^4
Roman numerals
Roman numerals as modelled here goes up to 3,999.
Binary
1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1 × 65,536 + 0 × 32,768 + 0 × 16,384 + 0 × 8,192 + 0 × 4,096 + 0 × 2,048 + 0 × 1,024 + 0 × 512 + 0 × 256 + 0 × 128 + 0 × 64 + 0 × 32 + 0 × 16 + 0 × 8 + 0 × 4 + 0 × 2 + 0 × 1 = 65,536
Octal
2 0 0 0 0 0
2 × 32,768 + 0 × 4,096 + 0 × 512 + 0 × 64 + 0 × 8 + 0 × 1 = 65,536
Hexadecimal
1 0 0 0 0
1 × 65,536 + 0 × 4,096 + 0 × 256 + 0 × 16 + 0 × 1 = 65,536
Read as powers of two: 65,536 = 65,536.
In historical numeral systems
Egyptian
6 fingers, 5 lotuses, 5 coils of rope, 3 hobbles, 6 strokes
6 × 10,000 + 5 × 1,000 + 5 × 100 + 3 × 10 + 6 × 1 = 65,536. The signs are simply repeated and added; where they sit on the line is a matter of layout, not value.
Systems that simply cannot reach this value are left out. Where a script needs a font most readers do not have, the reading is given instead of the glyphs — see number systems for each system in full.
Other mathematical patterns
- Deficient number
- Powerful number
Related numbers & connections
65,536 is 2¹⁶, the size of Unicode's original character space and the cap on port numbers.
A version 4 UUID is random across 122 bits, which is why independent systems can generate identifiers without coordinating and rely on them not colliding.
View 4122 →Technology & computing
Microsoft Excel held a maximum of 65,536 rows until the 2007 release raised it to 1,048,576 — that is, from 2¹⁶ to 2²⁰. The older ceiling had consequences beyond inconvenience: in 2020 Public Health England lost thousands of COVID-19 test results because case data was being collated in the legacy XLS format, whose row limit silently truncated the files. The limit was not a bug, and neither was the truncation; the failure was using a format whose documented ceiling was below the data volume.
DocumentedTechnology & computingPeriod: pre-2007 format; PHE incident 2020A 16-bit field holds 65,536 distinct values, so the largest is 65,535 — which is why TCP and UDP port numbers stop there, why an unsigned 16-bit counter wraps at that point, and why so many older file formats cannot describe anything larger. The distinction between 65,536 and 65,535 is the same off-by-one that separates 256 from 255 and is the single most common source of confusion about both.
DocumentedTechnology & computingThere are 65,536 values a 16-bit field can hold, which is also the size of the Unicode Basic Multilingual Plane.
DocumentedTechnology & computingGeography: worldwideUnicode originally allotted 16 bits per character, assuming 65,536 slots would cover every script. It did not, and rather than widen the default the standard added surrogate pairs — two 16-bit units encoding one character. That compromise is why text handling still breaks at this boundary, in emoji and in less common scripts alike.
DocumentedTechnology & computing
Mathematics
65,537 is 2¹⁶ + 1 and is prime — the fifth and largest known Fermat prime, after 3, 5, 17 and 257. No further one has been found despite extensive search, and many mathematicians expect there are none. It is the standard public exponent in RSA because it is prime, large enough to be safe, and has only two set bits, which makes exponentiation fast. So the number nearly every encrypted connection uses is chosen for an arithmetic accident of the number one above a power of two.
DocumentedMathematics65,536 = 2^2^2^2 — two raised to two raised to two raised to two — which makes it the fourth term of a sequence that grows faster than any ordinary notation can follow. The fifth term is 2^65536, a number with nearly twenty thousand digits, and the sixth cannot be written down in the observable universe. 65,536 is the last term of the sequence that fits comfortably in a sentence, which is a decent illustration of what tetration does.
DocumentedMathematics
Common questions
Why is the highest port number 65535?
A 16-bit field holds 65,536 distinct values, and counting from zero makes the largest 65,535. The same off-by-one is why byte limits stop at 255 rather than 256. 65,536 is also where Unicode originally expected every character to fit; when it did not, the standard added surrogate pairs rather than widening the default, which is why text handling still gets awkward at that boundary.
Is 65,536 a prime number?
No, 65,536 is not prime.
What are the factors of 65,536?
The factors of 65,536 are 1, 2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384, 32768, 65536.
About this page's data
Mathematical facts:computed directly from the number's value — nothing to source or verify externally.
Contextual records: 6 reviewer-confirmed records, sourced and reviewed before publication.
Last reviewed: 15 July 2026