* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: Arial, sans-serif;
background-color: #eef2f7;
display: flex;
flex-direction: column;
align-items: center;
min-height: 100vh;
padding: 20px;
}
.info-box, .container {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
width: 100%;
max-width: 600px;
margin-bottom: 20px;
}
.info-box h3, .container h2 {
color: #444;
margin-bottom: 10px;
text-align: center;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 10px;
}
th, td {
border: 1px solid #ccc;
padding: 10px;
text-align: center;
}
th {
background: #28a745;
color: white;
}
.container label {
font-size: 14px;
display: block;
margin-bottom: 8px;
text-align: left;
}
input, button {
width: 100%;
padding: 12px;
margin-top: 5px;
border-radius: 5px;
font-size: 16px;
}
input {
border: 1px solid #ccc;
}
button {
background-color: #28a745;
color: white;
border: none;
cursor: pointer;
transition: background 0.3s;
}
button:hover {
background-color: #218838;
}
.result {
margin-top: 20px;
font-size: 16px;
font-weight: bold;
padding: 15px;
border-radius: 5px;
display: none;
}
.success {
background: #d4edda;
color: #155724;
}
.error {
background: #f8d7da;
color: #721c24;
}
New Tax Regime – Financial Year 2025-26
This tax calculator is designed for the financial year **April 1, 2025, to March 31, 2026**, based on the proposed tax slabs under the **Income-Tax Bill, 2025**.
Tax Slabs for FY 2025-26
| Annual Income Range (₹) | Tax Rate |
| 0 – 4,00,000 | 0% |
| 4,00,001 – 8,00,000 | 5% |
| 8,00,001 – 12,00,000 | 10% |
| 12,00,001 – 16,00,000 | 15% |
| 16,00,001 – 20,00,000 | 20% |
| 20,00,001 – 24,00,000 | 25% |
| Above 24,00,000 | 30% |
Income Tax Calculator
Enter Annual Income (₹):
Calculate Tax
function calculateTax() {
let income = parseFloat(document.getElementById(‘income’).value);
let resultDiv = document.getElementById(‘taxResult’);
let exemption = 75000;
if (isNaN(income) || income < 0) {
resultDiv.innerHTML = "❌ Please enter a valid income amount.";
resultDiv.className = "result error";
resultDiv.style.display = "block";
return;
}
let taxableIncome = income – exemption;
if (taxableIncome <= 0) {
resultDiv.innerHTML = `✅ Your tax amount is
₹0.00.
(₹75,000 exemption applied)`;
resultDiv.className = “result success”;
resultDiv.style.display = “block”;
return;
}
let tax = 0;
let slabs = [
{ limit: 400000, rate: 0 },
{ limit: 800000, rate: 0.05 },
{ limit: 1200000, rate: 0.10 },
{ limit: 1600000, rate: 0.15 },
{ limit: 2000000, rate: 0.20 },
{ limit: 2400000, rate: 0.25 },
{ limit: Infinity, rate: 0.30 }
];
let previousLimit = 0;
for (let slab of slabs) {
if (taxableIncome > previousLimit) {
let taxableAmount = Math.min(taxableIncome, slab.limit) – previousLimit;
tax += taxableAmount * slab.rate;
previousLimit = slab.limit;
} else {
break;
}
}
resultDiv.innerHTML = `✅ Your tax amount is
₹${tax.toFixed(2)}.
(₹75,000 exemption applied)`;
resultDiv.className = “result success”;
resultDiv.style.display = “block”;
}