# Tax and compliance

How Payroll calculates income tax and social insurance from the rules in HRIS, which columns it adds, and what to check when tax looks off.

Source: https://support.rework.com/article/payroll-tax-compliance

Payroll can work out personal income tax and social insurance for you, using the tax and insurance rules your HR team already keeps in HRIS. This article explains how statutory tax is switched on, which columns it adds, and what to check when a number looks off.

## Where the rules come from

Tax brackets, personal deductions, insurance rates, and insurance caps and floors all live in **HRIS**, not in Payroll. When a payroll runs, it picks up each employee's rules for that period and uses them in the calculation. That means:

- You update a tax or insurance rule once, in HRIS, and every policy follows it.
  
- Different employees can be on different rules, and one set of formulas still works for all of them.
  
- Each payroll keeps the rules it was run with, so a later change in HRIS doesn't quietly change a past payroll.
  

Employee details that tax depends on, such as **Dependants** **(1)**, **Personal Deduction**, and the tax and insurance numbers **(2)**, come through the HRIS source. You can see them on the **Sources** page. Variables that are greyed out **(3)** aren't fed by any data source in your workspace yet.

![The HRIS adapter variables on the Sources page, with Dependants and Personal Deduction, the tax code, social security and insurance numbers, and the greyed-out tax plan variables marked](https://storage.googleapis.com/reworkv3-public/success/260930/8zdeSASxYICSeSZLfF01EboW5eYaxzlHoeQ4Orp3jZ89vmBVas1uYSzSrvWFGE20/img.6kT223g2d6se5MIePOYfZJK6uCXzspIGIDlxeW3kHEwGGifyZNZxDRLSk3Ostc1Q.png)

## Turn on statutory tax for a policy

1. Open the policy's settings on the **General** tab.
   
2. Set the **Country**. It decides the default tax and compliance behaviour.
   
3. Switch on **Apply statutory tax** and save.
   
   \[IMAGE: people-ops/payroll/images/payroll-tax-compliance-02.png | The General tab of a policy's settings with Country and the Apply statutory tax switch marked\]
   

The tax columns appear on the **Columns** tab straight away, marked with a lock.

## The columns it adds

| Column | Who pays | How it's worked out |
| --- | --- | --- |
| **Insurance (Employee)** | Employee | The employee insurance rate × the insurance base (the salary, kept between the floor and the cap). |
| **Insurance (Company)** | Company | The employer insurance rate × the same base. |
| **Personal Income Tax** | Employee | Progressive brackets from HRIS applied to total taxable income. |
| **Dependant Reduction** | Not a deduction | Number of dependants × 4,400,000 by default. It lowers taxable income rather than take-home pay. |

Two locked totals sum everything up: **total tax (employee)**, the deductions from the employee, and **total tax (employer)**, the extra cost to the company.

### How the main totals change

With statutory tax on, the tax columns become the single source for deductions and company cost, so these totals are recalculated and locked:

- **Taxable income** = total income − employee insurance − personal deduction − dependant reduction
  
- **Take-home** = total income − employee tax and insurance − other deductions − salary advances
  
- **Company cost** = total income + employer insurance + other company costs
  

## People with more than one position

If someone holds two positions, they have two records on the payroll. Payroll can calculate income tax **once** on their combined taxable income, with one personal deduction, so they don't get the lower brackets twice. The payroll grid then shows one line for the person with their positions underneath.

## Good to know

- **Changing the dependant amount?** The 4,400,000 figure is part of the **Dependant Reduction** formula, so edit it on the Columns tab. The number of dependants itself comes from HRIS.
  
- **Tax showing 0?** The employee probably has no tax rules in HRIS for that period. Check their profile in HRIS, then refresh the payroll. ⚠️
  
- **Avoid these codes** for your own columns: `insurance_ee`, `insurance_er`, `pit`, `dependant_reduction`, `total_tax_employee`, `total_tax_employer` and `total_deduction`. Payroll uses them for the tax columns.
  
- **Writing your own tax formula?** Use `PROGRESSIVE_TABLE` with the brackets from HRIS, or `PROGRESSIVE` with brackets typed into the formula. Older country-specific functions such as `PIT_VN` still work in existing formulas, but aren't recommended for new ones.
  
- Conditions on a column never switch off the locked tax columns.
  

## Related articles

- [Columns, variables and formulas](https://support.rework.com/article/payroll-columns-formulas)
  
- [Payroll policies and templates](https://support.rework.com/article/payroll-policies-templates)
  
- [Connect data sources](https://support.rework.com/article/payroll-data-sources)
