Question
Auth OdditiesSeptember 25, 2026Why are some SMS OTP codes 4 digits and others 6?
Details
No universal digit count
There is no worldwide law that SMS one-time passwords must be four or six digits. Banks, shops, and government portals pick their own lengths. Seeing both in the wild reflects different eras, risk levels, and typing comfort—not a carrier rule about code size.
Why six digits dominate newer systems
NIST SP 800-63B requires verifier-generated out-of-band secrets to be at least six decimal digits (or equivalent) and to rate-limit failed attempts; issuing a new code must not reset the failure counter. That floor pushed many newer systems to six digits, while older or lower-risk flows may still send four.
Length is only one control
Four digits feel like a PIN; six digits match common hardware/software OTP practice (including TOTP truncations). Length alone does not fix SMS risks such as SIM swap or interception, so higher-assurance accounts add authenticator apps or passkeys on top.
Also Asked As
SMS OTP 4 digit vs 6 · verification code length · why 6 digit OTP