Compute Indian income tax
compute_taxComputes Indian income tax for a fiscal year under new or old regimes, including slabs, deductions, capital gains, surcharge, rebate, and cess from a versioned rule pack.
Instructions
Deterministic Indian income tax computation for a fiscal year. Handles new/old regime slabs, standard deduction, 87A rebate with marginal relief (threshold tested on TOTAL income per the statute; rebate never offsets 111A/112A tax under the new regime), employer NPS under 80CCD(2) in both regimes, house-property loss (self-occupied interest capped by s.24(b), not deductible under 115BAC; set-off capped by s.71(3A); none under 115BAC), 111A/112A capital gains rates with the basic-exemption set-off, surcharge (with the 15% cap on gains and marginal relief), and 4% cess (FY 2025-26 figures). All arithmetic is done in code from a versioned rule pack -- never estimated.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"regime": "<regime>"
},
"name": "compute_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fy | No | Fiscal year, e.g. '2025-26' (AY 2026-27); '2026-27' is tax year 2026-27 under the Income-tax Act 2025 | 2025-26 |
| houses | No | Optional: every house owned, one entry each, INSTEAD of housePropertyLoss. The tool works out income from house property per regime (nil self-occupied interest under the new regime) and folds it in, so never add it to otherIncome yourself. | |
| regime | Yes | Tax regime. 'new' (115BAC) is the default regime since FY 2023-24. | |
| ageBand | No | Age band: below60, senior (60-79), superSenior (80+). Affects old-regime exemption only. | below60 |
| ltcg112A | No | Long-term capital gains under section 112A in INR, BEFORE the Rs 1,25,000 exemption | |
| stcg111A | No | Short-term capital gains under section 111A (listed equity, STT paid) in INR | |
| deductions | No | Old regime only: total Chapter VI-A deductions (80C, 80D, ...) in INR, EXCLUDING employer NPS (use employerNps80CCD2). Ignored under the new regime. | |
| otherIncome | No | Other normal-rate income in INR (interest, net rent, etc.) | |
| salaryIncome | No | Gross salary income in INR, before standard deduction | |
| employerNps80CCD2 | No | Employer's NPS contribution under s.80CCD(2) in INR. Allowed in BOTH regimes (the one Chapter VI-A deduction 115BAC keeps); capped at 14% of salary in the new regime, 10% (private) / 14% (government) in the old (FY 2025-26). | |
| housePropertyLoss | No | Loss under the head house property as a POSITIVE number: home-loan interest on the house you live in, or a let-out property's net loss. Requires housePropertyType. Old regime: set off against other heads up to Rs 2,00,000 (s.71(3A)). New regime: no inter-head set-off (s.115BAC(2)). Figures for FY 2025-26. | |
| housePropertyType | No | Required when housePropertyLoss is above 0. 'selfOccupied': the home you live in; its interest is deductible only up to Rs 2,00,000 in the old regime (s.24(b)) and not at all in the new regime (s.115BAC(2)(i)), and what is above that is neither set off nor carried forward. 'letOut': no s.24(b) cap; the part not set off is carried forward (s.71B). | |
| governmentEmployer | No | Central/State Government employer (raises the old-regime 80CCD(2) cap to 14% for FY 2025-26) | |
| presumptiveBusiness | No | Optional: presumptive business or profession (44AD / 44ADA / 44AE). The tool works out the deemed income and adds it to otherIncome itself. |