The standard advice is three to six months of expenses, and the ambiguity in the word expenses is where most people get the number wrong. The relevant figure is what you would actually spend during a period of unemployment — not your normal monthly outflow.
In a genuine crisis, dining out stops, travel stops, subscriptions get cancelled and discretionary spending compresses substantially. What remains is housing, utilities, groceries, transportation, insurance premiums and minimum debt payments. That number is commonly 25–35% lower than total spending, which means the emergency fund target is correspondingly smaller and more achievable than it first appears.