Password expiration

Also known as: password aging

On this page 7

Password expiration is an account policy that makes a password valid only for a defined period, after which the operating system requires the user to choose a new one before signing in again. Also called password aging, it is one of the classic controls that operating systems apply to user accounts, alongside complexity rules, lockout thresholds and password history.

The policy was designed to limit how long a stolen password stays useful. Current guidance has changed its role considerably: periodic forced changes are no longer recommended by default, and expiration is now treated mainly as a response to suspected compromise or a requirement of specific regulatory regimes.

How password expiration works

Password expiration works by storing the date of the last password change with each account and comparing it with a maximum password age set by policy. When the age is exceeded, the sign-in process blocks normal access and forces a password change, usually after a warning period of several days.

Most implementations combine several related settings, summarized in the table below.

SettingPurposeTypical range
Maximum password agePeriod after which the password expiresNever, or 60 to 365 days
Minimum password agePrevents immediate changes back to the old password0 to 1 day
Warning periodDays of advance notice before expiry5 to 14 days
Password historyNumber of previous passwords that cannot be reused0 to 24
Inactive periodGrace time after expiry before the account is disabled0 to 30 days
Core password aging settings

The minimum password age and password history exist only to make expiration meaningful. Without them, a user could change the password several times in a row and return to the original value within minutes.

Password expiration across operating systems

Every major desktop operating system supports password expiration, but the default behavior and the configuration point differ. Local accounts are usually configured on the device, while domain accounts follow a central directory policy.

PlatformAccount typeConfiguration pointDefault
Windows local accountsLocalLocal security policy or the net accounts command42 days on many editions
Windows domain accountsDomainGroup Policy or fine-grained password policies42 days unless changed
LinuxLocal/etc/login.defs and the chage commandNo expiry (99999 days)
macOSLocal or managedpwpolicy or configuration profilesNo expiry
Cloud identity servicesCloudTenant password policyOften no expiry
Where password expiration is configured

On Linux, the aging data lives in /etc/shadow, where dedicated aging fields record the last change and the minimum, maximum, warning and inactive values. Administrators inspect or adjust them per account with chage -l and related options.

Microsoft accounts signed in through Windows also follow the online service policy rather than local settings, which is a frequent source of confusion when local and cloud rules disagree.

Why guidance on periodic expiration changed

Guidance changed because research and operational experience showed that forced periodic changes tend to weaken passwords. Users who must change passwords every few months often make predictable modifications, such as incrementing a number or changing the season, which attackers anticipate.

The NIST Digital Identity Guidelines in SP 800-63B state that verifiers should not require periodic password changes and should instead force a change when there is evidence of compromise. Microsoft removed the expiration recommendation from its security baselines for similar reasons, and many security frameworks followed.

AspectTraditional periodic expiryCurrent recommended approach
Trigger for changeFixed calendar intervalEvidence or suspicion of compromise
Password qualityShort, patterned variationsLong passphrases kept longer
Supporting controlsComplexity character rulesBreached password screening and MFA
Help desk loadHigh, many reset requestsLower
User behaviorWriting passwords down, reuse patternsUse of password managers
Traditional and current approaches compared

Expiration has not disappeared entirely. Some regulatory and contractual regimes still require fixed rotation, and expiration remains appropriate for shared or privileged accounts, temporary passwords issued by administrators and service credentials with no other protection.

Choosing a password expiration policy

The right policy depends on the account type, the available supporting controls and any external compliance requirement. A policy should be chosen deliberately rather than inherited from an outdated default.

SituationRecommended settingReason
Standard user with MFA and breach screeningNo periodic expiryCompromise is detected by other controls
Temporary password from an administratorExpire at first sign-inEnsures only the user knows the password
Administrator or superuser accountRotation or managed vaultHigh impact if misused
Shared account after staff departureImmediate forced changeFormer users still know the password
Contract requires rotationLongest interval permittedMeets the rule with least user burden
Decision guide for password expiration

Where periodic expiry remains in place, a longer interval with a strong length requirement is generally better than a short interval with complex character rules.

Common problems with expired passwords

Expired passwords cause predictable operational problems, especially on devices that sign in rarely or without an interactive user. Recognizing them shortens troubleshooting considerably.

  • Remote users locked out: a laptop off the corporate network cannot complete a domain password change, so cached credentials stop working after the change elsewhere.
  • Service accounts stopping: scheduled tasks and services fail silently when an account used by them expires.
  • Mapped drives and email prompts: applications keep the old credential and trigger repeated authentication requests or account lockouts.
  • Unnoticed warnings: users dismiss the expiry notice until the day sign-in is blocked.

The usual fix is a password reset by an administrator or through self-service, combined with setting service accounts to never expire and protecting them in another way, such as managed service accounts.

The short version

Password expiration means your password has a use-by date. When that date passes, the computer asks you to make a new password before letting you in.

The idea was that if someone stole your password, it would stop working soon. Experts now think forcing frequent changes makes people pick weaker, predictable passwords, so many systems now ask for a change only when something looks wrong.

Where it makes a difference

A regional clinic runs a Windows domain where every account expired after 42 days. The help desk received about thirty reset calls each month, and an internal review found many passwords that differed only by a trailing number. Staff also wrote new passwords on notes attached to monitors.

The IT team enabled multi-factor authentication, added screening against known breached passwords and raised the minimum length to 14 characters. They then removed periodic expiry for standard users but kept a 90-day rotation for administrator accounts, as required by their insurer. Within three months, reset calls fell to fewer than ten per month, and the visible password notes disappeared from workstations.