Payroll Setup

Build salary structure templates

Define how a CTC is split into earnings, deductions and employer contributions using fixed amounts, percentages and a balancing remainder.

  • Payroll Admin
3 min read
On this page (7 sections)
  1. Create a template
  2. Component calculation types
  3. India: tag Basic for EPF
  4. Avoid double deductions
  5. Read the preview
  6. Edit, duplicate and manage templates
  7. Frequently asked questions

Create a template

Go to
  1. Payroll
  2. Salary Structure Templates
  3. New Template
  1. Enter a Template Name, such as “India Standard – Full Time”.

  2. Choose Applies To: All States, or Specific State(s) if the template includes a component only some states have.

  3. Add your Earning Components — see the calculation types below.

  4. Add any Deductions & Employer Contributions.

  5. Click Preview against ₹1,00,000 CTC to check the breakup.

  6. Click Create Template.

Component calculation types

TypeHow it worksExample
Flat AmountA fixed annual amount. Can be changed per employee when assigning.Conveyance 19,200
% of CTCA percentage of the employee’s annual CTC.Basic = 40% of CTC
% of ComponentA percentage of another component in the template.HRA = 50% of Basic
Remainder of CTCWhatever is left of CTC after all other earnings. Earnings only, one per template.Special Allowance
All amounts are annual. Each pay period gets the annual amount divided by the pay group’s periods per year.

In the deductions section, choose whether each line is a Deduction, Employer Contribution or Benefit.

India: tag Basic for EPF

EPF is calculated on the earnings tagged with the epf_wage_base wage-base tag. Tag Basic (and DA, if you use it):

  1. On the Basic earning row, tick Counts toward EPF wage base (Basic + DA) if it’s listed.

  2. If it isn’t listed yet, type epf_wage_base in + new wage-base tag and click Add.

Avoid double deductions

PF, ESI, Professional Tax and TDS are calculated from Statutory Rule Sets at pay-run time. If you add them to a template — for example to show them in the breakup — tick Computed live by compliance engine on each. The template line is then left off the payslip and the real amount comes from the statutory rules.

Read the preview

The preview shows each component’s amount for a CTC of 1,00,000 in your currency, with gross earnings, total deductions, estimated net pay and employer contributions. It also checks the CTC is fully allocated.

  • CTC fully allocated — the components add up to the CTC.
  • Only N% of CTC is allocated — add a Remainder of CTC earning or adjust the percentages.

The preview covers the template only; statutory deductions are added at pay-run time.

Edit, duplicate and manage templates

ActionWhat it does
Assign to EmployeeOpens Salary Structure Assignment with this template selected.
Set as DefaultPre-selects this template when assigning salaries.
EditChange the template. Employees already assigned keep their amounts until you re-assign them.
DuplicateOpens a copy named “Copy of …” to adapt.
Deactivate / ActivateMarks the template inactive or active.
Change LogEvery change made to the template, with field-level details.
DeleteOnly possible when no employees are currently assigned — reassign them first.

Frequently asked questions

Add an earning with the calculation type Remainder of CTC. It absorbs whatever the other earnings don’t cover. You can have one per template.

Benefits appear in the breakup and preview, but they aren’t paid or deducted in pay runs.

Build salary structure templates | Mocha HRMS Help Center