How to Calculate Payroll in India: A Step-by-Step Guide for HR Teams
Payroll calculation in India means turning attendance, salary structure, and statutory rules like PF, ESI, professional tax, and TDS into one accurate net-pay figure every month. Getting it right protects employee trust, compliance standing, and the accuracy of the company's own financial records. This guide breaks down what you need before a payroll run, Indian salary structure, the process, and a worked example.
Payroll calculation in India is the process of determining an employee’s net salary by applying earnings, deductions, and statutory rules like PF, ESI, Professional Tax, and TDS.
For HR teams, this isn’t just a calculation. It’s a monthly process that directly impacts employee trust, compliance, and financial accuracy.
This guide shows you exactly how to calculate payroll in India step by step, from inputs to final salary payout.
Ravi learned why this matters the hard way.
Running a manufacturing unit in Pune for over six years, he spent three sleepless nights every month before salary day, working through Excel sheets, checking PF, ESI, Professional Tax, and TDS. One small mistake went unnoticed until an EPFO notice arrived, followed by a conversation with an employee whose salary didn’t match expectations.
That one error cost him more than the penalty.
Payroll Calculation: What You Need to Know
- Payroll calculation combines earnings, deductions, and compliance rules to determine net salary.
- Accurate inputs, like attendance, salary structure, and tax declarations, are critical.
- Statutory deductions such as PF, ESI, PT, and TDS directly impact take-home pay.
- The process follows a repeatable flow: inputs → calculation → validation → payout → compliance.
- As complexity grows, manual payroll becomes harder to manage without software.
If you manage payroll, manually or through software, this guide walks you through the complete process, from understanding salary structure to calculating take-home pay and handling compliance.
On that note, let’s get started.
Payroll is the process of determining what each employee should be paid for a given period, applying all earnings and deductions, then disbursing salaries in line with company policy and Indian labor and tax laws.
For HR teams, payroll is an ongoing cycle. Every month, the department collects inputs, validates data, processes salaries, and handles reports, statutory filings, and employee queries.
When this cycle runs without errors, employees are paid accurately and on time. When it doesn’t, even the best payroll system cannot prevent escalations and penalties.
HR professionals handle payroll operations end to end, interpreting policies, coordinating with finance, and ensuring that the numbers reflect both law and internal rules.
Understanding payroll gives HR teams control over:
This is also why payroll literacy is no longer just for accountants. HR teams are expected to understand structures, components, and calculations well enough to explain them to employees and leadership alike.
Payroll in India consists of four core elements:
With that foundation in place, let’s look at what needs to happen before you run a single calculation.
A clean pre-payroll stage ensures your main calculation is accurate, repeatable, and easy to audit. Think of this as your setup phase: make sure every input is complete and correct before you touch any formulas.

Most organizations follow a monthly cycle, but some roles may be paid weekly or on an hourly basis. The pay period governs how payable days, LOP, and pro-rata salary calculations work for new joiners and exits.
Maintain an updated record for every employee, including:
This is the foundation for all salary calculations every month.
Collect and validate the information needed for statutory deductions:
Having this upfront ensures accurate TDS calculation for every employee.
Time and attendance data determines how much of the monthly salary is actually payable:
Once this data is frozen, you can move to the actual calculation.
Gather all variable and one-time items that change month to month:
When this payroll checklist is complete, you’re ready for the main calculation. But before jumping into the steps, it helps to understand the salary structure you’ll be working with.
Before diving into the step-by-step process, you need a clear mental model of three core layers: CTC, gross salary, and net salary. These decide what is promised in an offer letter and what finally reaches the employee’s bank account.

CTC is the total annual cost an organization commits for an employee. It includes:
CTC represents the full budget for the employee. When managers ask why take-home is lower than CTC, the answer lies in how this amount is split across components, some of which are contributions rather than direct earnings.
Gross salary is the portion of CTC representing the employee’s earnings before deductions. It typically includes:
Gross salary is the reference point for all earnings before statutory deductions are applied.
Net salary is what actually gets credited to the employee’s account. It is derived by subtracting all deductions from gross salary:
Every employee conversation about salary ultimately comes down to this number.
When applying deductions or explaining salary breakups, HR teams repeatedly deal with these components:
Now that the structure is clear, here is how the actual calculation runs.
Also Explore: HRA Calculator in India
Once your structure, inputs, and policies are in place, you can move into the actual calculation. This is a repeatable process that works whether you’re using Excel, payroll software, or both.
Payroll Calculation Formula:
Net Salary = Gross Earnings – Statutory Deductions – Other Recoveries

First, calculate payable days using attendance, leave, and LOP data.
Next, add up all earnings for the month using your salary structure and variable inputs:
The gross earnings figure is the base for all statutory and tax calculations.
Now subtract all applicable statutory and authorized deductions from gross salary:
After standard deductions, account for any additional items affecting pay for the period:
Subtract total deductions from total earnings to arrive at net salary.
This net figure flows into bank advice files, payslips, and MIS reports, completing the monthly payroll cycle. To see how these steps work with real numbers, here is a worked example.
Here’s how the full process looks in practice, using a standard fixed-pay employee with no LOP and typical statutory coverage.
Suppose Ananya works in a company where payroll is processed monthly, and her salary structure, deductions, and tax handling all follow standard payroll rules.
Ananya’s monthly gross salary is ₹50,000, the sum of basic pay, HRA, and special allowance. This is the amount before any deduction is applied.
EPF employee contribution = 12% of Basic Salary = 12% × ₹25,000 = ₹3,000
Balance: ₹50,000 − ₹3,000 = ₹47,000
PT varies by state. For this example, the applicable monthly PT is ₹200.
Balance: ₹47,000 − ₹200 = ₹46,800
Now apply TDS. TDS is not a flat salary component; it depends on the employee’s estimated taxable income, declarations, and the applicable tax regime. For this example, assume the monthly TDS deducted is ₹2,000.
TDS = ₹2,000
Running balance: ₹46,800 − ₹2,000 = ₹44,800
TDS depends on annual taxable income, declarations, and tax regime. For this example, monthly TDS = ₹2,000.
Balance: ₹46,800 − ₹2,000 = ₹44,800
Final summary:
| Component | Amount |
| Gross Salary | ₹50,000 |
| Less: EPF | – ₹3,000 |
| Less: Professional Tax | – ₹200 |
| Less: TDS | – ₹2,000 |
| Net Salary (Take-Home) | ₹44,800 |
This is exactly how a payroll system would process the same inputs: earnings in, deductions applied, net pay out. Each of those deductions follows specific rules under Indian law. Here is what HR teams need to know about each one.
These are the core deductions that determine accurate net salary every month:

EPF is a retirement savings contribution governed by the EPF Act, deducted monthly on eligible wages. It affects both employee take-home pay and employer cost, and is one of the most common deductions employees ask about.
ESI is a social security contribution that applies when the employee and establishment meet the prescribed wage threshold. It provides medical and cash benefits and is deducted from wages for covered employees.
PT is a state-level tax and varies by location. It is not uniform across all employees, as it depends on the state or union territory where the employee works. Payroll teams must map each employee to the correct PT slab before finalizing monthly salary.
TDS on salary is the income tax deducted by the employer based on the employee’s estimated annual taxable income. It is the most variable deduction because it changes with salary revisions, investment declarations, regime choice, and tax-saving claims. This is also where payroll software becomes especially useful, as it automates estimates and reduces manual errors.
Certain states require small employer and employee contributions to the LWF, which funds welfare schemes for workers. Contributions are typically deducted monthly, half-yearly, or annually and appear as statutory line items on the payslip.
In some organizations, NPS is offered as an employee benefit. This contribution is deducted from salary and remitted alongside employer contributions. While not mandatory for all employees like EPF, NPS deductions are statutory in nature when configured in payroll.
Why do HR Teams need to understand deductions?
Most employee payroll queries come from deductions, especially when take-home salary changes unexpectedly. Being able to explain PF, ESI, PT, and TDS clearly helps HR teams reduce confusion and build employee trust. This is one of the most practical skills an HR professional can develop.
Understanding each deduction is one piece of the picture. The other is knowing how the full monthly cycle actually runs from start to finish.
Knowing how salary is calculated matters, but so does understanding how payroll actually runs every month. Payroll processing moves through three stages:
This stage determines how smooth the rest of the cycle will be:
Once inputs are frozen, you get started with the actual processing workflow:
The stage ends with compliance and analysis:
That’s the process. What varies across companies is the tool or method used to run it.
The workflow is similar across companies, but how you run payroll can look very different. Each approach changes the effort, risk, and control involved.
This is where most organizations begin. HR maintains Excel sheets with employee data, salary structures, and formulas for basic, HRA, allowances, EPF, ESI, PT, TDS, and net salary. Every month, attendance, leave, LOP, incentives, and other changes are updated manually.
Pros and Cons:
Manual payroll offers maximum control but demands significant time and careful checks, especially as headcount grows.
Payroll software like Keka keeps HR in control of the process while the system handles most of the calculation work.
How it works: Salary components, earning heads, deduction heads, and statutory settings are configured once. Monthly inputs like attendance and employee changes are imported or integrated. The system applies business rules and statutory logic to compute gross, apply deductions, and arrive at net pay.
Why teams move to software: It reduces manual data entry, makes deductions consistent across employees and months, and simplifies compliance by centralizing PF, ESI, PT, and TDS logic with ready-made reports and payslips.
For teams that have outgrown Excel but aren’t ready to outsource, software is usually the natural next step.
Tools like Keka handle the full payroll cycle in one place: attendance integration, statutory calculations, payslip generation, and compliance filings, without requiring HR to manage separate sheets for each step.
With outsourcing, the HR team’s role shifts from running calculations to managing inputs and reviewing outputs.
How it works: Each month, your team shares updated employee details, salary revisions, attendance, leave, and variable pay with a payroll service provider. The vendor runs payroll, generates payslips, bank files, and reports, and often handles statutory payments and filings as well.
When it makes sense: You need specialist support for complex compliance; internal bandwidth is limited; or you’re comfortable trusting a partner with sensitive data.
Most companies start with Excel, move to software as headcount grows, and consider outsourcing when compliance complexity or scale becomes difficult to manage internally.
Whichever method you use, certain challenges tend to come up. Knowing them in advance makes it easier to build a process that holds up month after month.
Understanding how salary is calculated is necessary, but running a clean payroll cycle month after month requires more. Most problems don’t come from the formula itself. They come from how data is handled, how compliance is tracked, and how scattered the systems are.

The good news is most of the above-discussed problems can be easily overcome by a few disciplined practices.
Payroll in India isn’t just a monthly calculation. It’s a system that ties together employee data, salary structures, statutory deductions, and compliance into one repeatable process.
When that system is clean, payroll runs smoothly. Salaries go out on time, deductions are accurate, compliance stays on track, and HR doesn’t spend days fixing errors or answering escalations.
The difference usually comes down to how you run the process. If you’re managing payroll in Excel, it can work when your team is small and structures are simple. But as headcount grows and compliance becomes more layered, manual effort increases, errors creep in, and tracking everything across sheets becomes harder to sustain.
At the end of the day, the goal isn’t just to calculate payroll. It’s to run it confidently, every month, without surprises.
Payroll is calculated by adding total earnings (basic, HRA, allowances, bonuses) and subtracting deductions like EPF, ESI, Professional Tax, and TDS to arrive at net salary. The process also includes validating inputs, running calculations, and completing salary disbursement and compliance filings.
Payroll calculation is the process of converting salary structure and monthly inputs, such as attendance, leave, and variable pay, into net salary. It combines earnings, deductions, and statutory rules to determine the final amount paid to employees each pay cycle.
Employee payroll taxes include TDS, EPF, ESI, and Professional Tax. To calculate them, estimate annual taxable income for TDS, apply relevant tax slabs, and calculate PF, ESI, and PT based on wage definitions, eligibility, and state-specific rules.
Manual payroll involves using Excel to manage employee data, salary structures, and formulas for earnings and deductions. Each month, HR updates attendance, leave, and variable pay, then calculates gross salary, deductions, and net pay, requiring careful validation to avoid errors.
To manage payroll in Excel, create structured templates with formulas for earnings and deductions like EPF, ESI, PT, and TDS. Regularly update attendance and salary inputs, and ensure formulas reflect current laws. While workable for small teams, Excel becomes harder to manage as complexity grows.
Subscribe to keep up with the latest strategic finance content.
Request a demo