Pension and medical look at cumulative years; home purchase and permits look at consecutive months. Pick a city, drag the gap, and see exactly which ledger bleeds.
Pension and medical years only add up — a gap never resets them
Home purchase, plates and residency count consecutive months — one gap restarts
—
Stored only in this browser, so you can compare cities and gap lengths side by side.
No records yet — tune the inputs, then hit "Save this estimate".
Data lives only in this browser — no uploads, no accounts.
Rule table updated November 2026; the city list covers 12 cities with the most typical consecutive-month requirements.
You generally need 15 cumulative pension years to draw a monthly pension, and most cities ask men for 30 / women 25 cumulative medical years (varies locally) to keep retiree medical coverage. These ledgers only add up and never reset: a 6-month gap means 6 fewer months of years and 6 fewer contributions into your personal accounts — a slightly smaller pension later, but everything banked stays banked.
For non-local residents, buying a home, joining a plate lottery, settling a hukou, or earning residence-permit points all require "N consecutive months (or years) of social insurance, back pay excluded". Miss one month and everything banked is void — the count restarts from zero. This is the ledger that actually hurts: two years of saving toward purchase eligibility can evaporate with one resignation.
Within 3 months of a gap (the window most cities allow), a new employer can back-pay and stitch the pension ledger back together; in some cities medical coverage can be restored retroactively too. But purchase, plate and residency eligibility almost universally excludes back-paid months — which is why the moment your gap exceeds a month, agents will tell you to bridge it yourself via flexible-employment contributions.
This tool takes the conservative reading: "from the first gap month, consecutive months reset to zero; back pay only rescues the cumulative ledger within a 3-month window". On the clock wall, dark cells are months rebuilt from zero; back-pay cells appear only when the gap is 3 months or shorter.
| Tier-1 | Beijing: non-locals need 60 consecutive months to buy; Shanghai 5 years; Guangzhou 5 years (2 in some districts); Shenzhen 1 year up (district-based) |
|---|---|
| New tier-1 | Hangzhou 4 years; Chengdu 2 (restricted zones); Wuhan 2; Nanjing 3 (Jiangbei 2); Suzhou 2; Tianjin 3 (Binhai exceptions aside) |
| Plate lottery | Beijing car plate lottery needs 5 consecutive years; Shanghai plate auction 3; Shenzhen, Hangzhou and Tianjin lotteries from 2 years |
| Residency (hukou) | Shanghai residence-to-hukou needs 7 consecutive years; Guangzhou points-based entry from 4; Shenzhen and Hangzhou hukou bars range from 6 months to 2 years |
| Medical window | Back payment within 3 gap months restores coverage (most cities); beyond 3 months some cities impose a 6-month waiting period |
| Maternity | Most cities require 9-12 consecutive paid months before delivery; a gap disqualifies you |