Tax clearance for expats in Malaysia is something your employer files on your behalf, not something you apply for. When a foreign employee leaves Malaysia for more than three months, the employer must tell LHDN on Form CP21 through e-SPC on MyTax at least 30 days before departure, then hold back final pay until LHDN issues the Tax Clearance Letter (Surat Penyelesaian Cukai, SPC) or 90 days pass, whichever comes first.
The people who get stuck are the ones who told HR two weeks before the flight, since the form has to be with LHDN a month ahead and the 90-day hold is counted from the day LHDN receives it. I’ve lived in Kuching since 2016 and I’m not a tax adviser, so this is the process as LHDN publishes it, in the order it happens. The one-line rule: tell HR your departure date the day you resign, and ask which form they are filing.
TL;DR
- Your employer files, not you: s.83(4) of the Income Tax Act requires CP21 for an employee leaving Malaysia, and CP22A covers the end of a private-sector job. Both go online through e-SPC since 1 January 2024.
- The form must reach LHDN not less than 30 days before your departure date.
- Your employer may hold any money payable to you for up to 90 days from LHDN receiving the form (s.83(5)), or until the SPC arrives. LHDN’s own target is 14 working days once documents are complete.
- Leave with under 182 days in your final calendar year and that year is taxed at a flat 30% with no reliefs.
- A refund is paid only to a Malaysian bank account, so that account has to stay open after you go.
- Unpaid tax can bring a s.104 travel restriction at the airport.
What Is Tax Clearance, and Who Needs It?
LHDN describes the SPC as “a certification issued by LHDNM to the employer concerning the income tax affairs of an employee who will cease employment / retire / die or leave Malaysia”. The employer owns the process because s.83 of the Income Tax Act, and e-SPC has no login for an employee.
Three events trigger it: resigning or finishing a contract, retiring or dying, and leaving Malaysia for more than three months. CP21 covers the leaving, CP22A covers a private-sector job ending, and CP22B is the public-sector twin of CP22A.
A foreigner flying home for good usually needs CP21 even where CP22A would not be required, because the exemption for staff under monthly tax deduction (GPHDN 2/2024, para 3.2.2) applies to citizens only. The one other exception is an employee who travels often for work, if LHDN’s Director General accepts it.
Moving to another employer inside Malaysia is the lighter case, since HASiL says no notice is needed where the employer knows the employee will be employed elsewhere in the country.
Who Does What, and When, in a Tax Clearance?
The exit runs in eight steps, and the employer or LHDN holds the pen on four of them.
| Step | Who | What | Deadline or timing | Source |
|---|---|---|---|---|
| 1 | You | Give HR your last day and departure date, plus passport (all pages), your entry and exit schedule, EA forms for up to three years and any VSS/MSS letter | The day you resign | GPHDN 2/2024, Lampiran A |
| 2 | Employer | Submits CP21 (web form only) or CP22A (web form or batch file) through e-SPC on MyTax | Not less than 30 days before departure or cessation | HASiL employer page |
| 3 | Employer | Withholds any money due to you | Up to 90 days from LHDN receiving the form, or until the SPC arrives | s.83(5) |
| 4 | You | File outstanding returns, including this year’s on last year’s form with the year altered if the new form is not out yet, unless you qualify for monthly deduction as final tax | Before LHDN will process | GPHDN 2/2024, para 4 |
| 5 | LHDN | Checks returns for the latest and earlier years, open audits and compounds; issues the SPC to the employer with a copy to you | 14 working days target once documents are complete | LHDN slide T2025 |
| 6 | Employer | Pays LHDN any tax shown on the SPC from the held money, releases the balance to you | On receiving the SPC | GPHDN 2/2024, para 6.2 |
| 7 | You | Receive any refund of over-deducted monthly tax in the bank account registered on MyTax | After assessment, no fixed date | LHDN |
| 8 | Employer and you | Pass cancellation and the Immigration Check-Out Memo run alongside; the EPF Leaving the Country withdrawal needs that memo | Alongside steps 2 to 6 | EPF |
The clock in step 3 starts when LHDN receives the form, not when you resign. Take a 30 June flight with the form received on 31 May, the latest the law allows: the hold can run to 29 August, two months after you land.
How Long Does Tax Clearance Take in Malaysia?
Plan on 10 to 14 working days from a complete filing. LHDN’s own slide gives 14 working days “if the employer submits all the required documents and there are no further queries”, while HR software vendors quote 10.
“Complete” is where the promise ends. GPHDN 2/2024 para 6.1.1 ties processing to every return being filed, audits closed and compound cases settled, so LHDN publishes no binding time, and a leaver with a gap in the filing history has no date to hold it to. The returns checked can reach back seven years, says LHDN’s termination-of-service slide.
What delays a filing is mostly paperwork. Leavers describe missing prior-year returns, passport copies without every page, and an entry and exit schedule that does not match the stamps, since LHDN builds residence status from those dates. The other cause is the employer filing late, or not at all. Once the form is in, people report two weeks to a month before the SPC lands.
The 90 days is the longest the law lets an employer hold your money. It caps the employer; it is not an LHDN processing promise.
Can My Employer Really Keep My Last Salary?
Yes. Section 83(5) obliges the employer to withhold “any part of money which is or may be payable” to a departing employee and bars paying it out for 90 days after LHDN receives the form unless LHDN gives permission. That covers the last salary, bonus, leave encashment and gratuity alike, since each is money payable.
An employer who pays you anyway becomes liable for your tax under s.107(4) and can be fined RM200 to RM20,000, jailed for up to six months, or both, under s.120(1). That risk is why a careful HR team holds firm even when you are keen to be paid and gone, and why the power sits with them. The practical move is to make filing easy: give written notice of your last day and departure date, a forwarding address and your tax file number.
The common complaint is the employer who tells the leaver to file the form personally, which cannot work because e-SPC is employer-only.
What if HR Won’t File, or Has Already Let Me Go?
The pattern repeats: the employer cancelled the visa, gave no clearance, and now will not say whether CP21 went in. Start by asking HR in writing for the e-SPC acknowledgement receipt, which shows your name and tax number, the form type, the cessation date and the status. A refusal or silence puts the request on record with your departure date attached.
If HR still will not move, the fallback is a branch counter, since e-SPC covers only original applications and cases outside e-SPC go to the branch (GPHDN 2/2024, para 5.5). The Kuching office is Menara Hasil, Aras 17, No. 1 Jalan Padungan, open weekdays only. People who have used the counter describe a queue chit and a wait of about 10 minutes on weekday mornings, though for simpler requests than a clearance. Staff there have given different answers on whether a leaver must bring papers once the employer has filed, so ask what the file needs and get the answer by email.
Phone queues are a weaker route: people who rang the contact centre on 03-8911 1000 report mixed luck. HASiL lists an e-Janji Temu appointment service as the alternative, and the state Customer Care Officer is the escalation LHDN names.
Does the 182-Day Rule Catch You in Your Leaving Year?
It does, and a short leaving year costs tax the way a late arrival does. The full test for how the 182-day rule sorts residents sits in the parent guide; here only the exit matters. Leave before you have 182 days in the calendar year of departure and you are non-resident for that year, so the SPC assessment runs at a flat 30% on the year’s chargeable income with no reliefs, per Public Ruling 2/2026.
Two rescues exist. The linked-period rule in s.7(1)(b) counts a short period if it links to 182 consecutive days in the preceding or following year, with absences for work, illness or social visits of 14 days or fewer counted as presence. And a leaver whose employment in the year lasted 60 days or less is exempt under Schedule 6 para 21, measured by employment period rather than days present.
Take a leaver who arrives on 1 September 2025 and leaves on 30 April 2026. That is 122 days in 2025 and 120 in 2026, 242 days in Malaysia in all, yet neither year reaches 182 and neither has a 182-day stretch beside it to link to. On the published tests both years come out at 30%. Leaving early in the year costs tax on the way out, and there is no later date to cross the line.
An app showing no balance does not mean you are cleared. The balance on MyTax lists assessed tax, while the SPC is issued to your employer only after LHDN checks returns, audits and compounds.
Rates and thresholds here are the ones in force on 1 November 2026, and anything announced in Budget 2027 is a proposal until it is gazetted.
What Do EPF, SOCSO and Immigration Need From You?
Three agencies touch your exit alongside LHDN, and each runs on its own clock.
EPF is the one with a deadline of its own. The full withdrawal under Leaving the Country needs the cancelled pass or the Check-Out Memo, and EPF asks you to start about two months before the pass expires, with a bank account that is still active; the basics are in how EPF works for foreign employees, and the official EPF page lists the form.
SOCSO has nothing to withdraw. Contributions are not refundable, and only benefits already awarded carry on, which the foreign-worker side of SOCSO spells out against PERKESO’s own page.
Immigration is separate again. Your employer cancels the pass and you collect the Check-Out Memo, and neither step proves the tax is settled. The Immigration office in Kuching handles pass matters, and the cancellation runs in parallel with the CP21 filing rather than after it.
What Happens if You Leave Malaysia Without Tax Clearance?
The tax does not go away. LHDN can impose a s.104 travel restriction on anyone with arrears, and it had done so against 203,123 individuals and companies as of 30 November 2024, which makes it a routine tool rather than a rare one. Paying the amount in the certificate in full lifts the restriction, and since 4 March 2025 you can request cancellation online through MyTax, with a five-working-day turnaround. HASiL’s travel restriction page also describes a temporary release for one trip: pay 50% of the outstanding tax and apply at the office handling your file at least five days before travel.
The employer stays liable for your tax and will chase you. Immigration’s online travel status check asks for a MyKad number, so it is built for citizens, and a foreigner should ask the HASiL Contact Centre on 603-8911 1000 or look in MyTax instead.
If you have already left, file the outstanding returns on MyTax, ask the former employer whether CP21 was filed and request a copy of the SPC, and keep the Malaysian account open.
Where Does a Tax Refund Go After You Leave?
Only to the Malaysian bank account registered on MyTax. Refunds go directly into that account; LHDN does not post cheques, so a closed account is a stalled refund. The account also has to be usable from abroad: banks that send one-time codes by SMS to a Malaysian number are the usual snag, and one major bank’s separate security device is the exception people point to. Keep the SIM alive or ask your bank about an app token before you fly, and see which banks suit foreigners and the rules on keeping an account open after the pass ends.
LHDN sets no date for a refund. People who left report waits from a few weeks to several months, and the route for moving the money home is a separate job once it lands.
So What Should You Do, and When?
Work back from the flight:
- 90 days out: tell HR in writing your last day, departure date, forwarding address and tax file number.
- 60 days out: hand HR the documents (passport with every page, entry and exit schedule, EA forms, any VSS/MSS letter), file any outstanding returns on MyTax, and start the EPF application at the EPF and SOCSO offices in Kuching.
- 30 days out: CP21 must be with LHDN. Ask HR for the e-SPC acknowledgement receipt.
- Last week: collect your Check-Out Memo, get a copy of the SPC if it has arrived, confirm your bank account and SIM or app token, and give HR your account details for the held pay.
- After the flight: the balance is released once the SPC is in, and any refund lands in the Malaysian account.
The downside of a perfect timeline is the wait itself. If LHDN has not issued the SPC by your flight, the hold runs up to 90 days from its receipt of the form, and the money arrives in a Malaysian account you have to manage from abroad.
Tax Clearance FAQ
How Do I Get a Tax Clearance Letter From LHDN?
Your employer applies for it through e-SPC. LHDN sends the SPC to the employer with a copy to you, and the status shows in the employer’s e-SPC account.
Can I Do Tax Clearance Online Myself?
No. e-SPC is employer-only, and the form for a leaver (CP21) can be filed only as a web form. What you can do online is file your own returns on MyTax and check your refund; the clearance itself waits on HR.
Do MM2H Holders Need Tax Clearance?
Only if they had Malaysian employment income, since that is what sets off an employer’s CP21. The question MM2H holders usually ask is about the certificate of tax residence, which is a different document, so ask for that separately. For the wider rules, see how income tax treats foreigners in Malaysia and what MM2H involves. Foreign-source income received by individuals is exempt through the end of 2036 under current law.
Next up: the the 182-day line and tax rates, the EPF withdrawal steps for foreigners, and the wider working in Kuching picture.
Tell HR the day you resign.