Quick Answer: The core payroll formula is Net Salary = Gross Salary minus total deductions. Gross salary is basic plus DA plus allowances, while deductions include employee EPF (12%), ESI (0.75% if eligible), professional tax and TDS. Cost to company adds the employer’s EPF, ESI and gratuity contributions on top of gross.
Key takeaways:
- Net Salary = Gross Salary minus total employee deductions.
- Gross Salary = Basic + DA + HRA + other allowances.
- CTC = Gross Salary + employer EPF + employer ESI + gratuity.
- Employee EPF is 12% of basic plus DA; employer matches it.
- Gratuity accrues at roughly 4.81% of basic plus DA.
Behind every payslip sits a set of formulas that turn a job offer into an actual bank credit. If you have ever wondered why your cost to company looks large but your take-home pay is smaller, the answer lies in these formulas and the salary components they act on. This guide explains the payroll formula in full, defines each component, and works through examples in rupees so the whole structure becomes clear.
Understanding these formulas is valuable whether you are an employee comparing job offers, an HR executive building salary structures, or a founder trying to budget headcount. Once you can move confidently between cost to company, gross salary and net pay, payroll stops being a mystery.
Expert insight: The single most misunderstood idea in Indian payroll is the gap between cost to company and take-home pay. Cost to company includes the employer’s own contributions, which never appear in your bank account, so your net salary is always meaningfully lower than your CTC.
The Three Salary Levels You Must Know
Indian payroll works across three levels, and confusing them causes most disputes. Cost to company is the total annual amount the employer spends on you, including their statutory contributions. Gross salary is your monthly earnings before deductions. Net salary, or take-home pay, is what actually reaches your account after deductions. Every payroll formula connects these three levels, so keeping them distinct is the first step to accuracy. The payroll formula essentially describes how money flows from CTC down to net pay.
The Core Payroll Formulas
There are three formulas worth memorising:
- Gross Salary = Basic + Dearness Allowance + House Rent Allowance + Other Allowances
- Net Salary = Gross Salary – (Employee EPF + Employee ESI + Professional Tax + TDS)
- Cost to Company = Gross Salary + Employer EPF + Employer ESI + Gratuity + other employer benefits
These three equations describe almost every payslip in the country. The components inside them are governed by specific rates, which we will now define.
Each Component Defined
Basic Salary and Dearness Allowance
Basic salary is the fixed core of the pay structure and, under the Code on Wages, 2019, must generally be at least 50% of cost to company. Dearness allowance is a cost-of-living component more common in government and public-sector roles. Together, basic plus dearness allowance forms the base for EPF, gratuity and bonus, which is why it is so pivotal.
House Rent Allowance and Other Allowances
House rent allowance helps cover rent and can be partly exempt from tax under the old regime. Other allowances such as special allowance, conveyance and telephone reimbursements make up the rest of gross pay and are largely taxable unless specifically exempt.
Employee and Employer EPF
Both the employee and the employer contribute 12% of basic plus dearness allowance to the provident fund. The employee’s share is deducted from gross pay, while the employer’s share adds to cost to company. This dual contribution builds a substantial retirement corpus over a career.
ESI Contributions
For employees earning up to 21,000 gross a month, the employee contributes 0.75% and the employer 3.25% towards Employee State Insurance, funding medical and cash benefits.
Gratuity
Gratuity is a long-service benefit that accrues at roughly 4.81% of basic plus dearness allowance each year, payable after five years of continuous service. Employers usually budget it as part of cost to company.
Worked Example: From CTC to Take-Home
Suppose an employee has a CTC of 6,00,000 a year, or 50,000 a month. Assume basic plus dearness allowance is 25,000. Employer EPF is 12% of 25,000, which is 3,000, and gratuity accrues at about 1,202 a month. Subtracting these employer costs, the gross salary is roughly 45,798. From gross, deduct employee EPF of 3,000, professional tax of 200 and TDS of, say, 1,500, giving a net take-home of about 41,098. This example shows clearly how the 50,000 monthly CTC becomes roughly 41,000 in hand.
| Level | Monthly Amount |
|---|---|
| Cost to Company | 50,000 |
| Less employer EPF and gratuity | -4,202 |
| Gross Salary | 45,798 |
| Less employee EPF, PT, TDS | -4,700 |
| Net Take-Home | 41,098 |
Benefits of Understanding the Formula
Knowing the formula lets employees evaluate job offers accurately instead of being dazzled by a big CTC number. It helps HR teams design structures that are compliant and tax-efficient, and it enables founders to forecast the true cost of hiring. For everyone, it demystifies the payslip, reducing disputes and building trust. This clarity is especially useful when negotiating a raise, because you can translate a CTC increase into a realistic change in take-home pay.
Challenges and Limitations
The formulas look neat, but real payroll adds complexity through variable pay, arrears, reimbursements, and mid-year changes in tax regime or ESI eligibility. Different companies structure allowances differently, so two identical CTCs can produce different take-home figures. Tax calculation in particular depends on individual investments and declarations, making TDS the least predictable component. These variables mean the formula gives a strong estimate but must be applied carefully to each case.
Common Mistakes to Avoid
- Equating CTC with take-home. CTC includes employer contributions, so net pay is always lower.
- Forgetting gratuity in CTC. Omitting gratuity understates cost to company and overstates gross.
- Mis-splitting basic salary. Setting basic below 50% of CTC can breach the Code on Wages.
- Applying EPF on the wrong base. EPF is on basic plus DA, not on gross salary.
- Ignoring allowance taxability. Treating all allowances as tax-free inflates net pay estimates.
- Overlooking employer ESI. The 3.25% employer share is part of cost to company for eligible employees.
Best Practices and Expert Recommendations
- Break the CTC into components. Always request a full CTC breakup so you can apply the formulas correctly.
- Model both tax regimes. Compare take-home under the old and new regimes before choosing.
- Keep basic compliant. Maintain basic at or above 50% of CTC to satisfy the law and protect benefits.
- Use a calculator for checks. Verify each component with an online tool to catch errors quickly.
- Document every allowance. Clearly label taxable and exempt allowances on the payslip.
- Review structures annually. Update the salary structure whenever rates or laws change.
The payroll formula is really a chain that links cost to company, gross salary and net pay through a handful of well-defined components. Master the chain and every payslip in India becomes easy to read, verify and plan around.
How Variable Pay and Bonuses Enter the Formula
The core formulas assume a fixed monthly salary, but real pay often includes variable components such as performance bonuses, incentives and commissions. These are added to gross salary in the month they are paid, which means both the taxable income and the TDS for that month rise. Provident fund, however, is usually calculated only on basic plus dearness allowance, so a one-time bonus normally does not increase your EPF. Annual bonuses can push you into a higher tax bracket for the year, so employers often spread the TDS impact across the remaining months to avoid a sudden dip in take-home pay. Understanding this helps employees interpret why a bonus month may not increase net pay as much as expected, since a larger slice goes to tax.
A Second Worked Example: Comparing Two Offers
Imagine you receive two offers, both quoting a CTC of 10,00,000 a year. In the first, basic is set at 50% of CTC; in the second, basic is only 35% with larger allowances. Because EPF is calculated on basic, the first offer deducts more provident fund, lowering immediate take-home but building a bigger retirement corpus. The second offer shows a higher monthly take-home but weaker long-term savings and lower gratuity. Applying the payroll formulas to both reveals that identical CTCs can deliver very different outcomes, which is exactly why you should always analyse the salary breakup rather than the headline number. This kind of side-by-side analysis turns the formula into a genuine decision-making tool rather than a mere accounting exercise.
If you want to go further, our companion guide explains how Indian payroll is calculated step by step with additional worked examples you can follow at your own pace.
- Try the free Payroll Calculator →
- How to Calculate Payroll in India (Step by Step)
- What Is Payroll? A Simple Guide for India
- Payroll Calculator: Free Online Tool + Guide
- Payroll Examples for Beginners in India
- Salary Hike Examples for Beginners (India)
- Salary Hike Calculator: Free Online Tool + Guide (India)
- More Tax & Salary guides
Frequently Asked Questions
What is the basic payroll formula?
The core formula is Net Salary equals Gross Salary minus total employee deductions. Gross salary is basic plus DA plus allowances, and deductions include employee EPF, ESI, professional tax and TDS.
What is the difference between CTC and gross salary?
CTC is the total annual cost to the employer, including their EPF, ESI and gratuity contributions. Gross salary is only your monthly earnings before deductions and excludes the employer’s own contributions.
How is gratuity calculated in payroll?
Gratuity accrues at roughly 4.81% of basic plus dearness allowance each year and becomes payable after five years of continuous service. Employers typically include this accrual as part of cost to company.
Why is my take-home pay lower than my CTC?
Because CTC includes employer contributions such as EPF and gratuity that never reach your account, plus your salary faces employee deductions like EPF, professional tax and TDS. Together these create a large gap between CTC and net pay.
Is EPF calculated on gross salary or basic?
EPF is calculated on basic salary plus dearness allowance, not on gross salary. Both employee and employer contribute 12% of this base, often subject to a wage ceiling depending on company policy.