Backup Code
A backup code is a pre-generated, one-time-use code that lets you sign in when your usual second-factor method, such as a phone or authenticator app, is lost or unavailable. You typically receive a small set of these codes to store somewhere safe and use them as a stand-in when your primary method won't work.
A backup code is a one-time-use recovery credential issued as a fallback within a multi-factor or 2-step authentication flow, used when a user's primary authenticator (for example a TOTP app, push, or hardware key) is unavailable, lost, or disrupted. It functions as a possession-style factor in most deployments, typically provisioned as a fixed batch of single-use codes (counts vary by provider, for example, some services generate a set of 12) that the user stores out of band and consumes one per authentication; each code is invalidated after use. Depending on configuration, backup codes may serve as a stand-alone MFA method or as a supplementary fallback to another factor. Note that backup codes address authentication (verifying the user during sign-in) and are distinct from account recovery governance or provisioning concerns; specifics such as code length, hashing at rest, and regeneration behavior are vendor-dependent and not established by the evidence here.
Why it matters
Multi-factor and 2-step authentication significantly strengthen account security, but they introduce a dependency on the availability of a primary authenticator such as a phone, authenticator app, push notification, or hardware key. When that authenticator is lost, damaged, replaced, or otherwise disrupted, the user can be locked out of their own account. Backup codes exist to close this gap: they provide a pre-provisioned fallback that lets a legitimate user complete sign-in without their usual second factor, reducing the risk that an MFA rollout translates into a wave of lockouts and help-desk escalations.
Because backup codes typically function as a possession-style factor stored out of band, their security depends heavily on how the user handles them. A set of codes written down and stored insecurely, or captured in a screenshot synced to a compromised account, becomes a standing bypass of the stronger primary factor. This makes backup codes a double-edged control, valuable for continuity, but a potential weak link if guidance on safe storage and single-use consumption is not enforced. The fact that each code is invalidated after use limits the blast radius of any single exposed code, but a full unused batch represents meaningful access if leaked.
For identity teams, backup codes matter as a deliberate design decision rather than an afterthought. Depending on configuration, they may serve as a stand-alone MFA method or as a supplementary fallback to another factor, and that choice shapes the overall assurance level of the authentication flow. Treating backup codes as an authentication concern, distinct from broader account recovery governance, helps teams reason clearly about where the fallback fits and what it protects against.
Who it's relevant to
Inside Backup Code
Common questions
Answers to the questions practitioners most commonly ask about Backup Code.