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.
| Setting | Purpose | Typical range |
|---|---|---|
| Maximum password age | Period after which the password expires | Never, or 60 to 365 days |
| Minimum password age | Prevents immediate changes back to the old password | 0 to 1 day |
| Warning period | Days of advance notice before expiry | 5 to 14 days |
| Password history | Number of previous passwords that cannot be reused | 0 to 24 |
| Inactive period | Grace time after expiry before the account is disabled | 0 to 30 days |
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.
| Platform | Account type | Configuration point | Default |
|---|---|---|---|
| Windows local accounts | Local | Local security policy or the net accounts command | 42 days on many editions |
| Windows domain accounts | Domain | Group Policy or fine-grained password policies | 42 days unless changed |
| Linux | Local | /etc/login.defs and the chage command | No expiry (99999 days) |
| macOS | Local or managed | pwpolicy or configuration profiles | No expiry |
| Cloud identity services | Cloud | Tenant password policy | Often no expiry |
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.
| Aspect | Traditional periodic expiry | Current recommended approach |
|---|---|---|
| Trigger for change | Fixed calendar interval | Evidence or suspicion of compromise |
| Password quality | Short, patterned variations | Long passphrases kept longer |
| Supporting controls | Complexity character rules | Breached password screening and MFA |
| Help desk load | High, many reset requests | Lower |
| User behavior | Writing passwords down, reuse patterns | Use of password managers |
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.
| Situation | Recommended setting | Reason |
|---|---|---|
| Standard user with MFA and breach screening | No periodic expiry | Compromise is detected by other controls |
| Temporary password from an administrator | Expire at first sign-in | Ensures only the user knows the password |
| Administrator or superuser account | Rotation or managed vault | High impact if misused |
| Shared account after staff departure | Immediate forced change | Former users still know the password |
| Contract requires rotation | Longest interval permitted | Meets the rule with least user burden |
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.