Made on Earth Donate

India tax API

Indian income tax as JSON: an individual’s under the new and old regime, or a partnership firm’s, LLP’s or company’s, FY 2020-21 onward.

India’s income tax calculators as one JSON API: the tax for a resident individual, a partnership firm, an LLP or a domestic company, with every line of the computation.

Endpoint

GET  https://supertoolshq.com/api/v1/tax/in/
POST https://supertoolshq.com/api/v1/tax/in/   (form-encoded body)

entity picks the calculator; the other parameters are those of a link copied from it, so a link’s query string works here with entity added. Every parameter is optional. An unknown entity is a 400 error.

Indian income tax (entity=individual)

Income tax under the new and old regime for salary, 44ADA professional income, interest, STCG and LTCG, FY 2020-21 to 2026-27.

The engine of the Indian Income Tax Calculator as JSON: a resident individual’s tax under both regimes, with losses set off and carried forward, the 87A rebate and its marginal relief, surcharge with marginal relief, and the 4% cess. Only the standard deduction is applied; other deductions (HRA, 80C, 80D…) aren’t taken.

Same parameters as a link copied from the calculator, so a link’s query string works here unchanged. Every parameter is optional.

Parameters

NameValuesDefaultMeaning
entityindividualindividualThis part of the API. It can be left out: it’s the default.
fy2026 (FY 2026-27), 2025 (FY 2025-26), 2024 (FY 2024-25), 2023 (FY 2023-24), 2022 (FY 2022-23), 2021 (FY 2021-22), 2020 (FY 2020-21)the current one (2026)Financial year, by the calendar year it starts in.
regimenew, oldnewThe regime for tax, tds and advanceTax. Both are always worked out under regimes.
ageu60, 60, 80u60Under 60, 60 to 79, or 80 and over. Changes only the old regime’s basic exemption.
salaryRupees0Taxable salary before the standard deduction. Commas and a ₹ sign are ignored.
peryear, monthyearWhether salary is a year’s or a month’s.
otherRupees a year0Interest and other income taxed at slab rates.
profRupees a year, up to 75000000Gross professional receipts under section 44ADA.
profpct50–10050Share of prof declared as income.
adbank, adcashRupees a year044AD turnover received by bank or digital means (6% is income) and in cash (8%). Together up to 30000000, or 20000000 when cash is over 5%.
bizRupees a year, negative for a loss0Non-speculative business profit from books, such as F&O trading.
specRupees a year, negative for a loss0Speculative business profit, such as intraday share trading.
stcgRupees a year, negative for a loss0Net short-term gains on listed equity and equity funds (111A), taxed at 20% (15% before 23 July 2024; FY 2024-25 uses 20%).
ltcgRupees a year, negative for a loss0Net long-term gains on listed equity and equity funds (112A), taxed at 12.5% above ₹1.25 lakh (10% above ₹1 lakh before 23 July 2024; FY 2024-25 uses the later rate).
bfbiz, bfspec, bfstcl, bfltclRupees0Losses brought forward from earlier years: business, speculative, short-term capital, long-term capital.

Unknown choices fall back to the default rather than failing. An amount that isn’t a number, a minus where no loss is possible, a declared share under 50%, and receipts or turnover over the 44ADA or 44AD limit are errors.

Losses are set off the same way in both regimes: a business loss against business and professional income, then other income and gains, never salary; a speculative loss only against speculative profit; a short-term capital loss against STCG and LTCG, a long-term one against LTCG only.

Response

FieldTypeMeaning
inputobjectEvery parameter as the API understood it, entity and defaults filled in. Send it back to get the same result.
linkstringThe same calculation on the calculator page.
currencystringAlways INR.
financialYearstringLike 2026-27.
regime, taxstring, numberThe chosen regime and the year’s tax under it, cess included.
tds, advanceTaxnumberHow much of tax TDS on the salary covers (tax on the salary alone), and the rest, payable as advance tax.
marginalRatenumberTax on the next ₹10,000 of income at slab rates, % (cess and surcharge included), in regime.
cheaper, savingstring, numbernew, old or same, and the difference between the two regimes’ tax.
regimes.new, regimes.oldobjecttotal, totalIncome, surchargeRate (%) and lines[]: the tax computation, each line with key, label and amount. Deductions and the rebate are negative.
carryForwardobjectLosses left to carry forward to next year: biz, spec, stcl, ltcl.
notes[]array of stringsThe notes the calculator shows under the result.

Line keys, in order (a line both regimes have at zero is left out, sums never are): salary, std, other, prof, ad, bizP, specP, lossSlab, normal, stcg, ltcg, lossCg, totalIncome, slab, stcgTax, ltcgTax, rebate, surcharge, cess, total. Amounts are whole rupees.

Example

curl 'https://supertoolshq.com/api/v1/tax/in/?salary=1800000&prof=600000&biz=-100000&ltcg=200000'
{
    "input": {
        "entity": "individual",
        "fy": "2026",
        "regime": "new",
        "age": "u60",
        "salary": "1800000",
        "per": "year",
        "prof": "600000",
        "profpct": "50",
        "adbank": "0",
        "adcash": "0",
        "biz": "-100000",
        "spec": "0",
        "stcg": "0",
        "ltcg": "200000",
        "other": "0",
        "bfbiz": "0",
        "bfspec": "0",
        "bfstcl": "0",
        "bfltcl": "0"
    },
    "link": "https://supertoolshq.com/india/income-tax-calculator/?entity=individual&fy=2026&regime=new&age=u60&salary=1800000&per=year&coregime=normal&turnover=small&book=&prof=600000&profpct=50&adbank=0&adcash=0&biz=-100000&bfbiz=0&spec=0&bfspec=0&other=0&stcg=0&bfstcl=0&ltcg=200000&bfltcl=0",
    "currency": "INR",
    "financialYear": "2026-27",
    "regime": "new",
    "tax": 202150,
    "tds": 150800,
    "advanceTax": 51350,
    "marginalRate": 20.8,
    "cheaper": "new",
    "saving": 221000,
    "regimes": {
        "new": {
            "total": 202150,
            "totalIncome": 2125000,
            "surchargeRate": 0,
            "lines": [
                {
                    "key": "salary",
                    "label": "Salary",
                    "amount": 1800000
                },
                {
                    "key": "std",
                    "label": "Standard deduction",
                    "amount": -75000
                },
                {
                    "key": "prof",
                    "label": "Professional income (44ADA), 50% of ₹6,00,000",
                    "amount": 300000
                },
                {
                    "key": "lossSlab",
                    "label": "Losses set off",
                    "amount": -100000
                },
                {
                    "key": "normal",
                    "label": "Income at slab rates",
                    "amount": 1925000
                },
                {
                    "key": "ltcg",
                    "label": "Long-term gains on equity (112A)",
                    "amount": 200000
                },
                {
                    "key": "totalIncome",
                    "label": "Total income",
                    "amount": 2125000
                },
                {
                    "key": "slab",
                    "label": "Tax at slab rates",
                    "amount": 185000
                },
                {
                    "key": "ltcgTax",
                    "label": "Tax on LTCG at 12.5% above ₹1.25 lakh",
                    "amount": 9375
                },
                {
                    "key": "cess",
                    "label": "Health and education cess, 4%",
                    "amount": 7775
                },
                {
                    "key": "total",
                    "label": "Income tax for the year",
                    "amount": 202150
                }
            ]
        },
        "old": {
            "total": 423150,
            "totalIncome": 2150000,
            "surchargeRate": 0,
            "lines": [
                {
                    "key": "salary",
                    "label": "Salary",
                    "amount": 1800000
                },
                {
                    "key": "std",
                    "label": "Standard deduction",
                    "amount": -50000
                },
                {
                    "key": "prof",
                    "label": "Professional income (44ADA), 50% of ₹6,00,000",
                    "amount": 300000
                },
                {
                    "key": "lossSlab",
                    "label": "Losses set off",
                    "amount": -100000
                },
                {
                    "key": "normal",
                    "label": "Income at slab rates",
                    "amount": 1950000
                },
                {
                    "key": "ltcg",
                    "label": "Long-term gains on equity (112A)",
                    "amount": 200000
                },
                {
                    "key": "totalIncome",
                    "label": "Total income",
                    "amount": 2150000
                },
                {
                    "key": "slab",
                    "label": "Tax at slab rates",
                    "amount": 397500
                },
                {
                    "key": "ltcgTax",
                    "label": "Tax on LTCG at 12.5% above ₹1.25 lakh",
                    "amount": 9375
                },
                {
                    "key": "cess",
                    "label": "Health and education cess, 4%",
                    "amount": 16275
                },
                {
                    "key": "total",
                    "label": "Income tax for the year",
                    "amount": 423150
                }
            ]
        }
    },
    "carryForward": {
        "biz": 0,
        "spec": 0,
        "stcl": 0,
        "ltcl": 0
    },
    "notes": [
        "₹51,350 of the tax isn’t covered by TDS on your salary. Pay it as advance tax (by 15 June, 15 September, 15 December and 15 March, once the year’s tax after TDS reaches ₹10,000); under 44AD and 44ADA all of it is due by 15 March.",
        "From FY 2026-27 (tax year 2026-27) the Income-tax Act, 2025 replaces the 1961 Act and renumbers its sections. This page keeps the familiar numbers: 44ADA, 87A, 111A, 112A."
    ]
}

Errors

Bad input gets HTTP 400 with a message per field, and the inputs as understood:

{
    "errors": {
        "salary": "Enter an amount in rupees, like 1500000 or 15,00,000.",
        "prof": "44ADA covers receipts up to ₹75 lakh (₹50 lakh if more than 5% came in cash). Above that you keep books and get them audited, so the profit is your real one."
    },
    "input": {
        "entity": "individual",
        "fy": "2026",
        "regime": "new",
        "age": "u60",
        "salary": "18 lakh",
        "per": "year",
        "prof": "9000000",
        "profpct": "50",
        "adbank": "0",
        "adcash": "0",
        "biz": "0",
        "spec": "0",
        "stcg": "0",
        "ltcg": "0",
        "other": "0",
        "bfbiz": "0",
        "bfspec": "0",
        "bfstcl": "0",
        "bfltcl": "0"
    }
}

From code

// JavaScript
const res = await fetch('https://supertoolshq.com/api/v1/tax/in/?' + new URLSearchParams({ salary: '1800000', ltcg: '200000' }));
const data = await res.json();
console.log(data.tax, data.cheaper);
# Python
import json, urllib.parse, urllib.request
query = urllib.parse.urlencode({'salary': 1800000, 'prof': 600000})
data = json.load(urllib.request.urlopen('https://supertoolshq.com/api/v1/tax/in/?' + query))
print(data['regimes']['new']['total'], data['regimes']['old']['total'])

Firms, LLPs and companies (entity=firm, llp, company)

Income tax for a partnership firm or LLP or a domestic company (normal rates with MAT against 115BAA), FY 2020-21 to 2026-27.

The firm, LLP and company side of the Indian Income Tax Calculator as JSON. The parameters are a copied link’s; boxes an entity doesn’t have (44AD for an LLP or a company, MAT for a firm) are ignored and named in a note.

Parameters

NameValuesDefaultMeaning
entityfirm, llp, companyA partnership firm, a limited liability partnership, or a domestic company.
fy2026 (FY 2026-27), 2025 (FY 2025-26), 2024 (FY 2024-25), 2023 (FY 2023-24), 2022 (FY 2022-23), 2021 (FY 2021-22), 2020 (FY 2020-21)the current one (2026)Financial year, by the calendar year it starts in.
bizRupees a year, negative for a loss0Business profit from books, after depreciation as the Act allows it. For a firm or LLP, after what it deducts for partners.
specRupees a year, negative for a loss0Speculative business profit, such as intraday share trading.
prof, profpctRupees a year (up to 7500000); 50–1000; 50Firm only: gross receipts under 44ADA and the share declared as income.
adbank, adcashRupees a year0Firm only: 44AD turnover by bank (6% is income) and in cash (8%).
coregimenormal, 115baanormalCompany: the regime for tax. Both are always worked out under regimes. (regime is the individual’s new or old.)
turnoversmall, largesmallCompany: turnover two years earlier up to ₹400 crore (25%) or over it (30%).
bookRupees a year, negative for a loss; emptyemptyCompany: book profit for MAT (115JB). Empty means the same as total income.
otherRupees a year0Interest and other income taxed at the normal rate.
stcg, ltcgRupees a year, negative for a loss0Net gains on listed equity and equity funds: 111A (20%) and 112A (12.5% above ₹1.25 lakh).
bfbiz, bfspec, bfstcl, bfltclRupees0Losses brought forward from earlier years: business, speculative, short-term capital, long-term capital.

Unknown choices fall back to the default. An amount that isn’t a number, a minus where no loss is possible, a declared share under 50%, and 44ADA or 44AD amounts over their limits are errors.

Response

FieldTypeMeaning
inputobjectEvery parameter as the API understood it, defaults filled in, including those this entity ignores. Send it back to get the same result.
linkstringThe same calculation on the calculator page.
currency, financialYearstringINR, and a year like 2026-27.
taxnumberThe year’s tax, surcharge and cess included (for a company, under regime; MAT if it’s higher).
marginalRatenumberTax on the next ₹10,000 of business profit, % (surcharge and cess included).
computationobjectFirm or LLP: total, totalIncome, rate (30), surchargeRate and lines[], each with key, label and amount. Deductions are negative.
regime, cheaper, savingstring, string, numberCompany: the regime asked for (coregime), normal, 115baa or same, and the difference.
regimes.normal, regimes.115baaobjectCompany: as computation; normal also has mat (true when MAT is paid) and the MAT lines.
carryForwardobjectLosses left to carry forward: biz, spec, stcl, ltcl.
notes[]array of stringsThe notes the calculator shows under the result.

Line keys, in order (a line at zero in every column is left out, sums never are; bookProfit and matTotal appear only under regimes.normal): prof, ad, bizP, specP, other, lossSlab, normal, stcg, ltcg, lossCg, totalIncome, normalTax, stcgTax, ltcgTax, surcharge, cess, normalTotal, bookProfit, matTotal, total. Amounts are whole rupees.

Examples

A firm with business profit and 44AD turnover:

curl 'https://supertoolshq.com/api/v1/tax/in/?entity=firm&biz=524000&adbank=5000000'
{
    "input": {
        "entity": "firm",
        "fy": "2026",
        "coregime": "normal",
        "turnover": "small",
        "biz": "524000",
        "spec": "0",
        "prof": "0",
        "profpct": "50",
        "adbank": "5000000",
        "adcash": "0",
        "book": "",
        "other": "0",
        "stcg": "0",
        "ltcg": "0",
        "bfbiz": "0",
        "bfspec": "0",
        "bfstcl": "0",
        "bfltcl": "0"
    },
    "link": "https://supertoolshq.com/india/income-tax-calculator/?entity=firm&fy=2026&regime=new&age=u60&salary=0&per=year&coregime=normal&turnover=small&book=&prof=0&profpct=50&adbank=5000000&adcash=0&biz=524000&bfbiz=0&spec=0&bfspec=0&other=0&stcg=0&bfstcl=0&ltcg=0&bfltcl=0",
    "currency": "INR",
    "financialYear": "2026-27",
    "tax": 257088,
    "marginalRate": 31.2,
    "computation": {
        "total": 257088,
        "totalIncome": 824000,
        "rate": 30,
        "surchargeRate": 0,
        "lines": [
            {
                "key": "ad",
                "label": "Business income (44AD), 6% of ₹50,00,000",
                "amount": 300000
            },
            {
                "key": "bizP",
                "label": "Business profit",
                "amount": 524000
            },
            {
                "key": "normal",
                "label": "Income at 30%",
                "amount": 824000
            },
            {
                "key": "totalIncome",
                "label": "Total income",
                "amount": 824000
            },
            {
                "key": "normalTax",
                "label": "Tax at 30%",
                "amount": 247200
            },
            {
                "key": "cess",
                "label": "Health and education cess, 4%",
                "amount": 9888
            },
            {
                "key": "total",
                "label": "Income tax for the year",
                "amount": 257088
            }
        ]
    },
    "carryForward": {
        "biz": 0,
        "spec": 0,
        "stcl": 0,
        "ltcl": 0
    },
    "notes": [
        "Pay it as advance tax: 15% by 15 June, 45% by 15 September, 75% by 15 December and all by 15 March; under 44AD and 44ADA all of it by 15 March. TDS on the income counts against it.",
        "From FY 2026-27 (tax year 2026-27) the Income-tax Act, 2025 replaces the 1961 Act and renumbers its sections. This page keeps the familiar numbers: 44AD, 115BAA, 115JB."
    ]
}

A company, both regimes:

curl 'https://supertoolshq.com/api/v1/tax/in/?entity=company&biz=50000000&book=80000000'
{
    "input": {
        "entity": "company",
        "fy": "2026",
        "coregime": "normal",
        "turnover": "small",
        "biz": "50000000",
        "spec": "0",
        "prof": "0",
        "profpct": "50",
        "adbank": "0",
        "adcash": "0",
        "book": "80000000",
        "other": "0",
        "stcg": "0",
        "ltcg": "0",
        "bfbiz": "0",
        "bfspec": "0",
        "bfstcl": "0",
        "bfltcl": "0"
    },
    "link": "https://supertoolshq.com/india/income-tax-calculator/?entity=company&fy=2026&regime=new&age=u60&salary=0&per=year&coregime=normal&turnover=small&book=80000000&prof=0&profpct=50&adbank=0&adcash=0&biz=50000000&bfbiz=0&spec=0&bfspec=0&other=0&stcg=0&bfstcl=0&ltcg=0&bfltcl=0",
    "currency": "INR",
    "financialYear": "2026-27",
    "tax": 13910000,
    "marginalRate": 27.8,
    "regime": "normal",
    "cheaper": "115baa",
    "saving": 1326000,
    "regimes": {
        "normal": {
            "total": 13910000,
            "totalIncome": 50000000,
            "rate": 25,
            "surchargeRate": 7,
            "mat": false,
            "lines": [
                {
                    "key": "bizP",
                    "label": "Business profit",
                    "amount": 50000000
                },
                {
                    "key": "normal",
                    "label": "Income at the normal rate",
                    "amount": 50000000
                },
                {
                    "key": "totalIncome",
                    "label": "Total income",
                    "amount": 50000000
                },
                {
                    "key": "normalTax",
                    "label": "Tax on income at the normal rate",
                    "amount": 12500000
                },
                {
                    "key": "surcharge",
                    "label": "Surcharge",
                    "amount": 875000
                },
                {
                    "key": "cess",
                    "label": "Health and education cess, 4%",
                    "amount": 535000
                },
                {
                    "key": "normalTotal",
                    "label": "Tax on total income",
                    "amount": 13910000
                },
                {
                    "key": "bookProfit",
                    "label": "Book profit (115JB)",
                    "amount": 80000000
                },
                {
                    "key": "matTotal",
                    "label": "MAT at 14% of book profit, with surcharge and cess",
                    "amount": 12463360
                },
                {
                    "key": "total",
                    "label": "Income tax for the year (the higher)",
                    "amount": 13910000
                }
            ]
        },
        "115baa": {
            "total": 12584000,
            "totalIncome": 50000000,
            "rate": 22,
            "surchargeRate": 10,
            "lines": [
                {
                    "key": "bizP",
                    "label": "Business profit",
                    "amount": 50000000
                },
                {
                    "key": "normal",
                    "label": "Income at the normal rate",
                    "amount": 50000000
                },
                {
                    "key": "totalIncome",
                    "label": "Total income",
                    "amount": 50000000
                },
                {
                    "key": "normalTax",
                    "label": "Tax on income at the normal rate",
                    "amount": 11000000
                },
                {
                    "key": "surcharge",
                    "label": "Surcharge",
                    "amount": 1100000
                },
                {
                    "key": "cess",
                    "label": "Health and education cess, 4%",
                    "amount": 484000
                },
                {
                    "key": "normalTotal",
                    "label": "Tax on total income",
                    "amount": 12584000
                },
                {
                    "key": "total",
                    "label": "Income tax for the year (the higher)",
                    "amount": 12584000
                }
            ]
        }
    },
    "carryForward": {
        "biz": 0,
        "spec": 0,
        "stcl": 0,
        "ltcl": 0
    },
    "notes": [
        "Section 115BAA would cost ₹13,26,000 less here. 115BAA gives up most deductions and incentives (80-IA, 10AA, additional depreciation and the like) and any MAT credit, and once chosen it applies to every later year.",
        "Pay it as advance tax: 15% by 15 June, 45% by 15 September, 75% by 15 December and all by 15 March. TDS on the income counts against it.",
        "From FY 2026-27 (tax year 2026-27) the Income-tax Act, 2025 replaces the 1961 Act and renumbers its sections. This page keeps the familiar numbers: 44AD, 115BAA, 115JB."
    ]
}

Errors

Bad input gets HTTP 400 with a message per field, and the inputs as understood:

{
    "errors": {
        "biz": "Enter an amount in rupees, like 1500000 or 15,00,000."
    },
    "input": {
        "entity": "llp",
        "fy": "2026",
        "coregime": "normal",
        "turnover": "small",
        "biz": "20 lakh",
        "spec": "0",
        "prof": "0",
        "profpct": "50",
        "adbank": "0",
        "adcash": "0",
        "book": "",
        "other": "0",
        "stcg": "0",
        "ltcg": "0",
        "bfbiz": "0",
        "bfspec": "0",
        "bfstcl": "0",
        "bfltcl": "0"
    }
}

The conventions every API here follows (methods, errors, versions) are in the API overview.