Indian Tax Calculator FY 2025-26
A comprehensive calculator to compute income tax for India based on both old and new tax regimes for Financial Year 2025-26, reflecting the latest changes from Budget 2025.
Features
- Calculate tax based on either monthly or yearly salary inputs
- Support for both old and new tax regimes with accurate 2025-26 tax slabs
- Detailed breakdown of tax calculation
- Monthly mode includes options for:
- Consolidated additional incentives/allowances (performance pay, special allowance, etc.)
- One-time bonus/variable pay (not multiplied by 12)
- Consolidated additional deductions (Professional Tax, Labor Welfare Fund, etc.)
- Detailed calculations for bonus month including in-hand amount
- Yearly mode provides annual salary calculation
- Considers standard deduction, PF, LTA, HRA, and other components
- Proper handling of EPF contributions in new tax regime
- Additional tax-saving deductions for old regime (80C, 80D, 80E)
- Computes in-hand salary after all deductions
- Easy-to-use command-line interface with helpful notes
Installation
You can install the package directly from PyPI:
pip install tax_calculator_by_yousaf
Alternatively, you can install directly from GitHub:
pip install git+https://github.com/yousafkhamza/tax_calculator_by_yousaf.git
Usage
After installation, you can run the calculator directly from the command line:
tax-calculator
Or import it in your Python code:
from tax_calculator import calculate_tax_2025_26
calculate_tax_2025_26()
Tax Calculation Details
New Regime (Default for FY 2025-26)
- Standard Deduction: ₹75,000
- Tax Slabs:
- Up to ₹4,00,000: No tax
- ₹4,00,001 to ₹8,00,000: 5%
- ₹8,00,001 to ₹12,00,000: 10%
- ₹12,00,001 to ₹16,00,000: 15%
- ₹16,00,001 to ₹20,00,000: 20%
- ₹20,00,001 to ₹24,00,000: 25%
- Above ₹24,00,000: 30%
- Section 87A rebate up to ₹60,000 for income up to ₹12,00,000
- Effective zero tax for income up to ₹12,00,000
- For salaried individuals, effective zero tax for income up to ₹12,75,000 (due to standard deduction)
- Important: EPF contributions are NOT tax-exempt under the new regime
Old Regime
- Standard Deduction: ₹50,000
- Tax Slabs:
- Up to ₹2,50,000: No tax
- ₹2,50,001 to ₹5,00,000: 5%
- ₹5,00,001 to ₹10,00,000: 20%
- Above ₹10,00,000: 30%
- Section 87A rebate applicable for income up to ₹5,00,000 (₹12,500 rebate)
- Additional deductions available (80C, 80D, 80E, etc.)
- EPF contributions are tax-exempt
Surcharge Details
- 10% for income between ₹50 lakhs and ₹1 crore
- 15% for income between ₹1 crore and ₹2 crore
- 25% for income between ₹2 crore and ₹5 crore
- 37% for income above ₹5 crore (25% under new regime)
- Health and Education Cess of 4% applicable on all tax amounts
EPF Treatment in New Tax Regime
- Employer's EPF contribution (up to 12% of salary) remains tax-exempt
- Combined employer contributions to EPF, NPS, and superannuation funds are tax-exempt up to ₹7.5 lakh
- Employee's EPF contribution is NOT eligible for tax deduction under the new regime
- Interest earned on EPF up to ₹2.5 lakh contribution remains tax-exempt
When to Choose Which Regime?
- New Regime: Beneficial for individuals with fewer tax-saving investments or deductions, especially those with income above ₹15 lakhs
- Old Regime: May be more beneficial for individuals with significant tax-saving investments and deductions
Command-Line Interface
The calculator guides you through a simple interactive process:
Monthly Input Mode
- Choose monthly input mode
- Enter monthly salary components:
- Basic Salary
- HRA
- Special Allowance
- LTA
- PF Contribution
- Additional Incentives/Allowances
- Additional Deductions (PT, LWF, etc.)
- One-time Bonus/Variable Pay (not multiplied by 12)
- Select tax regime
- For old regime, enter additional deductions
- View calculated monthly tax and in-hand salary
- If bonus was entered, see detailed bonus month calculation including:
- Gross salary for bonus month
- Additional tax due to bonus
- Total tax for bonus month
- In-hand salary for bonus month
- Updated annual total with bonus
Yearly Input Mode
- Choose yearly input mode
- Enter yearly salary components:
- Basic Salary
- HRA
- Special Allowance
- LTA
- PF Contribution
- Select tax regime
- For old regime, enter additional deductions
- View calculated annual tax and in-hand salary
- See note about calculating bonus in monthly mode
Requirements
- Python 3.6 or higher
License
This project is licensed under the MIT License - see the LICENSE file for details.
Author
Yousaf Khamza
Metadata
Release files for tax-calculator-by-yousaf 0.2.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| tax_calculator_by_yousaf-0.2.3.tar.gz | 6.9 kB | Without provenance | Details for tax_calculator_by_yousaf-0.2.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| tax_calculator_by_yousaf-0.2.3-py3-none-any.whl | Python 3 | none | any | Details for tax_calculator_by_yousaf-0.2.3-py3-none-any.whl |
Total release size: 14.6 kB
Release files / tax_calculator_by_yousaf-0.2.3.tar.gz
| Download URL | tax_calculator_by_yousaf-0.2.3.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ad5f728d4f6cc060428861ad2a6839cfb1450ece56ac4f1b61dd326644c08b15
|
|
BLAKE2b-256 checksum How to use checksums |
3fbdd9f8d8d546d605a39410cb2e8bbd10da7a229a7225b0374c1dc51a423791
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Release files / tax_calculator_by_yousaf-0.2.3-py3-none-any.whl
| Download URL | tax_calculator_by_yousaf-0.2.3-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7d67c1f192d22939a7d664079df9b2fdae727c408430d991482d8120c5e3e9a4
|
|
BLAKE2b-256 checksum How to use checksums |
6276b24537022f83cc2d76a43951d04e337be92195f6a192b3d8201a3947d355
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.3
|
Security for tax-calculator-by-yousaf 0.2.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.