Overstaying is illegal stay. Go to the local exit-entry authority to accept the penalty and put your documents in order; if you must leave urgently, you can also accept the penalty at the exit port and then depart.
Nationwide (all cities)
Overstay is illegal stay
Once your residence permit passes its expiry date you are in illegal stay. The Exit and Entry Administration Law gives a warning for illegal stay; in serious cases, a fine of 500 yuan per day up to 10,000 yuan, or 5 to 15 days of detention. The implementing regulation lists exceeding the stay or residence period stated on the document as illegal stay.
First route: local exit-entry authority
The Huaibei municipal government answer states that a foreigner who has overstayed should go to the local public security exit-entry administration department to accept the penalty and complete the relevant documents before leaving China.
Second route: penalty at the exit port
The same official answer states that where special circumstances require urgent departure, the foreigner may instead accept the penalty from the border inspection authority at the exit port and then depart.
The tier depends on how many days
The NIA penalty discretion baseline sets tiers by the number of days of illegal stay: 10 days or less draws a warning; 10 to 60 days is fined 500 yuan per day (counted from day 11) up to 10,000 yuan, or 5 days detention; 60 days or more draws a 10,000 yuan fine or 5 to 15 days detention. Handling it earlier means fewer days counted.