Landlord Deducted $1,500 for 'Carpet Replacement' After 5 Years - Is This Legal?

I publish illustrative scenarios prepared by my practice. All participants and conversations are fictional. The fictional posts are not posts by real users, accounts of client experiences, or reports of actual results.
Illustrative scenario prepared by my practice.
Security deposit laws vary by state and locality. This discussion focuses primarily on California law. Always verify current statutes before taking legal action.
Hypothetical question

Just moved out of my apartment in Los Angeles after living there for 5 years. I kept the place in great condition - cleaned thoroughly before move-out, no holes in walls, everything normal.

My landlord just sent me an itemized deduction statement. He's keeping $1,500 of my $2,400 security deposit for "carpet replacement." The carpet wasn't new when I moved in either - it looked like it was already a few years old.

Is this legal? Can landlords really charge you for normal wear and tear? The full replacement cost seems insane when I didn't actually damage anything.

Illustrative response

Document everything. I can't stress this enough.

Illustrative response

Check your lease carefully. The answer might be in there.