Made on Earth Donate

US tax API

US corporate income tax as JSON: the 21% federal tax plus any state’s, with NOLs.

The US tax calculator as a JSON API: what a C corporation pays in federal and state corporate income tax.

Endpoint

GET  https://supertoolshq.com/api/v1/tax/us/
POST https://supertoolshq.com/api/v1/tax/us/   (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.

entityCalculatorParameters and reply
company (default)US Corporate Tax Calculator: Federal + StateC corporations

C corporations (entity=company)

Federal corporate income tax at 21% plus any state’s, tax years 2025 and 2026.

The engine of the US Corporate Tax Calculator as JSON. The state tax is worked out first, on all of the profit, and deducted before the 21% federal tax. States start from the same income here; their own adjustments aren’t modelled. Amounts are whole dollars.

Parameters

NameValuesDefaultMeaning
entitycompanycompanyA C corporation. The only one so far, so it can be left out.
year2026, 20252026Tax year (calendar year).
stateTwo-letter code (CA, NY, DC…), nonenoneThe state that taxes the income. none: federal tax only.
profitDollars, negative for a loss0Income before income taxes: federal taxable income before the state tax deduction.

Commas and a $ sign are ignored. An unknown state falls back to none.

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.
currency, yearstring, numberUSD and the tax year.
tax, afterTax, effectiveRatenumberFederal and state tax together; the profit left; the tax as % of profit (null without a profit).
marginalRatenumberFederal and state tax on the next $1,000 of profit, %.
federalobjectprofit, stateTaxDeducted, taxable, rate (21), tax.
stateobject or nullcode, name, taxable, rate (% on the last dollar), tax. Zero tax, and a note, for states that tax gross receipts or nothing.
notes[]array of stringsThe notes the calculator shows under the result.

Example

curl 'https://supertoolshq.com/api/v1/tax/us/?year=2026&state=CA&profit=1000000'
{
    "input": {
        "entity": "company",
        "year": "2026",
        "state": "CA",
        "profit": "1000000"
    },
    "link": "https://supertoolshq.com/us/corporate-tax-calculator/?year=2026&state=CA&profit=1000000",
    "currency": "USD",
    "year": 2026,
    "tax": 279836,
    "afterTax": 720164,
    "effectiveRate": 27.98,
    "marginalRate": 27.98,
    "federal": {
        "profit": 1000000,
        "stateTaxDeducted": 88400,
        "taxable": 911600,
        "rate": 21,
        "tax": 191436
    },
    "state": {
        "code": "CA",
        "name": "California",
        "taxable": 1000000,
        "rate": 8.84,
        "tax": 88400
    },
    "notes": [
        "California charges at least $800 a year (the minimum franchise tax), profit or not; it’s included. A new corporation is exempt from it in its first year."
    ]
}

Errors

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

{
    "errors": {
        "profit": "Enter an amount in dollars, like 1500000 or 1,500,000."
    },
    "input": {
        "entity": "company",
        "year": "2026",
        "state": "none",
        "profit": "a lot"
    }
}

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