How to Calculate Payroll in India: A Step-by-Step Guide for HR Teams | Keka HR

PRODUCTS

  • Payroll Suite
  • HR Suite
  • Talent Suite
  • Project Services Suite
PeopleOS

The unified people platform - HR, payroll & talent in one core system.

Keka AI

AI woven across every workflow to save your team hours each week.

Marketplace

Connect 100+ integrations and the apps your team already runs on.

Customer Story

How Casepoint connected performance, engagement and HR ops on one system

Read the story

How to Calculate Payroll in India: A Step-by-Step Guide for HR Teams

Published: Jul 30, 2026
Updated: Aug 7, 2026
Read Time: 18 Mins
Author: Keka
How to Calculate Payroll in India: A Step-by-Step Guide for HR Teams
Summary

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.

What is Payroll in India?

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.

Why payroll calculation matters for HR teams

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:

  • Accuracy of payouts
  • Employee experience
  • Compliance with PF, ESI, PT, TDS, and other applicable laws

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.

Key components involved in payroll

Payroll in India consists of four core elements:

  • Employee and policy data: HR policies, salary structures, joining/exit dates, and eligibility criteria
  • Earnings components: Basic pay, HRA, special allowances, bonuses, incentives, and reimbursements
  • Deductions: EPF, ESI, Professional Tax, TDS, and any other authorized deductions
  • Compliance and reporting: Challans, returns, registers, and statutory documentation

With that foundation in place, let’s look at what needs to happen before you run a single calculation.

What Do You Need Before Payroll 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. 

Pre-Payroll Checklist

Confirm your pay period

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. 

Gather employee and salary data

Maintain an updated record for every employee, including:

  • Personal and employment details (name, code, designation, bank details)
  • Salary structure (basic, HRA, allowances, variable pay, benefits)
  • Applicable policy eligibility (bonuses, reimbursements, other components)

This is the foundation for all salary calculations every month.

Capture tax declarations and compliance inputs

Collect and validate the information needed for statutory deductions:

  • Investment and tax-saving declarations (80C, 80D, etc.)
  • Proof submission timelines and validation status
  • Previous employer income details where applicable

Having this upfront ensures accurate TDS calculation for every employee.

Finalize attendance, leave, and LOP data

Time and attendance data determines how much of the monthly salary is actually payable:

  • Present days, weekly offs, and holidays for the period
  • Approved leaves versus unapproved absences
  • Loss of Pay (LOP) days that reduce salary on a pro-rata basis

Once this data is frozen, you can move to the actual calculation.

Consolidate variable components

Gather all variable and one-time items that change month to month:

  • Monthly or quarterly incentives and performance bonuses
  • Sales commissions and shift allowances
  • Reimbursements (travel, phone, or other approved expenses)
  • Arrears, recoveries, or one-off payouts

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.

What Makes Up a Salary Structure in India?

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. 

Core Components of Salary Structure

CTC (Cost to Company)

CTC is the total annual cost an organization commits for an employee. It includes:

  • Fixed pay
  • Variable pay
  • Employer contributions and benefits

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

Gross salary is the portion of CTC representing the employee’s earnings before deductions. It typically includes:

  • Basic salary
  • HRA and other taxable allowances
  • Regular bonuses and incentives
  • Reimbursements, depending on the salary structure

Gross salary is the reference point for all earnings before statutory deductions are applied.

Net/Take-Home Salary

Net salary is what actually gets credited to the employee’s account. It is derived by subtracting all deductions from gross salary:

  • Employee contribution to EPF
  • Employee contribution to ESI (if applicable)
  • Professional Tax
  • TDS on salary
  • Any authorized non-statutory deductions (loans, advances, etc.)

Every employee conversation about salary ultimately comes down to this number.

Key Components HR Works With

When applying deductions or explaining salary breakups, HR teams repeatedly deal with these components:

  • Basic pay: Foundation for statutory calculations (EPF, gratuity)
  • HRA: Important for tax planning under the old tax regime
  • Allowances: Special allowance, conveyance, shift allowance, etc., used to balance the structure
  • Bonuses and incentives: Performance-linked components that fluctuate month to month

Now that the structure is clear, here is how the actual calculation runs.

Also Explore: HRA Calculator in India

How Does Payroll Processing Work 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

Payroll Calculation Workflow

Step 1: Calculate payable days and basic salary

First, calculate payable days using attendance, leave, and LOP data.

  • Take the employee’s monthly basic salary as per their structure
  • Apply attendance, leave, and LOP rules to determine actual payable days
  • Pro-rate basic salary (and other components, per your policy) based on those payable days

Step 2: Calculate gross earnings

Next, add up all earnings for the month using your salary structure and variable inputs:

  • Start with pro-rated basic salary
  • Add HRA and other allowances
  • Add monthly bonuses, incentives, overtime, shift allowance, and eligible reimbursements
  • Include arrears if any revisions apply to the period

The gross earnings figure is the base for all statutory and tax calculations.

Step 3: Calculate payroll deductions

Now subtract all applicable statutory and authorized deductions from gross salary:

  • Employee EPF contribution (as per rules and eligibility)
  • Employee ESI contribution (where coverage applies)
  • Professional Tax, based on the employee’s work state
  • TDS on salary, using declarations and the chosen tax regime
  • Recoveries such as loan EMIs or advance adjustments, if applicable

Step 4: Adjust other components

After standard deductions, account for any additional items affecting pay for the period:

  • One-time recoveries or reimbursements outside the regular structure.
  • Arrears for back-dated increments or corrections.
  • Full and final settlement amounts if processed in the same cycle.

Step 5: Calculate net salary

Subtract total deductions from total earnings to arrive at net salary.

  • Add up all earnings from Step 2, plus any adjustments from Step 4
  • Add up all deductions from Step 3, plus any additional recoveries
  • The difference is the net salary credited to the employee’s account

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.

Payroll Calculation 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. 

  • Basic salary: ₹25,000
  • HRA: ₹10,000
  • Special allowance: ₹15,000
  • Gross salary: ₹50,000

Step 1: Start with gross salary

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.

Step 2: Deduct EPF

EPF employee contribution = 12% of Basic Salary = 12% × ₹25,000 = ₹3,000

Balance: ₹50,000 − ₹3,000 = ₹47,000

Step 3: Deduct Professional Tax

PT varies by state. For this example, the applicable monthly PT is ₹200.

Balance: ₹47,000 − ₹200 = ₹46,800

Step 4: Deduct TDS

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

Step 5: Arrive at Net Salary

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.

Statutory Deductions in Indian Payroll

These are the core deductions that determine accurate net salary every month:

 Statutory Deductions in Indian Payroll

Employee Provident Fund (EPF)

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.

Employee’s State Insurance (ESI)

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.

Professional Tax (PT)

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.

Tax Deducted at Source (TDS)

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.

Labor Welfare Fund (LWF)

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.

National Pension Scheme (NPS)

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.

How Does Payroll Processing Work Step by Step?

Knowing how salary is calculated matters, but so does understanding how payroll actually runs every month. Payroll processing moves through three stages:

Stage 1: Pre-payroll activities

This stage determines how smooth the rest of the cycle will be:

  • Clarify payroll rules: Define how attendance, leave, overtime, and reimbursements are handled.
  • Collect all inputs: Attendance and leave (including LOP), new joiners and exits, salary revisions, incentives, reimbursements, and tax declarations.
  • Clean and validate data: Ensure the employee list is current, salary structures are updated, figures are in the right format, and there are no duplicates or missing values. This is where most errors can be caught before they reach payslips.

Payroll calculation and validation

Once inputs are frozen, you get started with the actual processing workflow:

  • Run payroll: Feed validated data into your system. Gross earnings are computed, deductions are applied, and net pay is derived for each employee.
  • Review results: Check a sample of employees across locations, levels, and scenarios: new joiners, exits, variable pay. Validate LOP, PF/ESI/PT/TDS, and net pay against expectations.
  • Update accounts: Post salary expenses and related liabilities into your accounting or ERP system.
  • Generate bank files and pay salaries: Create the bank transfer file with employee details and net pay. Once approved, share with the bank for salary credit.
  • Issue payslips: Generate payslips showing earnings, deductions, and net salary. Share via email or employee self-service.

Post payroll compliance and reporting

The stage ends with compliance and analysis:

  • Deposit statutory dues and file returns: Pay PF, ESI, Professional Tax, TDS, LWF (where applicable), and other statutory amounts within due dates. File the necessary returns and maintain challans and acknowledgements.
  • Generate payroll reports: Create department-wise, location-wise, and period-wise reports for finance and leadership. These support audits and feed into budgeting and headcount planning.

That’s the process. What varies across companies is the tool or method used to run it.

What are the Different Payroll Methods?

The workflow is similar across companies, but how you run payroll can look very different. Each approach changes the effort, risk, and control involved.

Manual payroll

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:

  • Pros: No licensing cost, high flexibility, full visibility into every formula.
  • Cons: Prone to data entry and formula errors, hard to scale beyond small teams, and difficult to keep in sync with policy or law changes. A single wrong cell can affect dozens of payslips.

Manual payroll offers maximum control but demands significant time and careful checks, especially as headcount grows.

Payroll software

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.

Outsourcing payroll

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.

Common Payroll Challenges and Best Practices

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.

Challenges and Best Practices of Payroll Processing

Common challenges:

  • Calculation errors: Manual entry, copy-paste, and complex formulas make it easy to miscalculate overtime, variable pay, or deductions. A single incorrect formula can distort net salary for multiple employees, leaving HR to sort out corrections on payout day.
  • Compliance risks: EPF, ESI, PT, and TDS each have their own rules, thresholds, rates, and filing timelines, all on different portals. Missing deadlines or applying old rates leads to penalties, interest, and audit issues.
  • Data fragmentation: Attendance, leave, reimbursements, bank details, and salary structures often live in different spreadsheets or email trails. This leads to missing information, duplicate entries, and version confusion. Even the best payroll system can only work with what it receives.

Payroll Best Practices

The good news is most of the above-discussed problems can be easily overcome by a few disciplined practices.

  • Automate calculations: Move repetitive, rule-based work (PF, ESI, PT, TDS, standard earnings and deductions) into a system built to handle payroll logic consistently. Automation removes mechanical work so HR can focus on review and exceptions.
  • Track compliance as part of the monthly calendar: Treat statutory payments and filings as core milestones, with clear owners, due dates, and checklists. Use systems that generate challans, reminders, and reports automatically so you can prove not just how you calculate payroll, but that you pay and file on time.
  • Maintain accurate, centralized records: Centralize employee master data, salary structures, attendance, leave, and compliance documents instead of scattering them across folders and sheets. Ensure every change (new joiners, exits, bank updates, salary revisions, tax proofs) is captured once, in one system, before the payroll run.

Wrapping it Up

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.

Frequently Asked Questions (FAQs)

Q1. How to calculate payroll?

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.

Q2. What is payroll calculation?

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.

Q3. How to calculate employee payroll taxes?

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.

Q4. How to do manual payroll?

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.

Q5. How to manage payroll calculation in Excel?

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.

TABLE OF CONTENT

    Subscribe to our Newsletter

    Curated HR content delivered to you, bi-monthly!

    Looking for a modern
    HR platform?