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.
entity | Calculator | Parameters and reply |
|---|---|---|
company (default) | US Corporate Tax Calculator: Federal + State | C 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
| Name | Values | Default | Meaning |
|---|---|---|---|
entity | company | company | A C corporation. The only one so far, so it can be left out. |
year | 2026, 2025 | 2026 | Tax year (calendar year). |
state | Two-letter code (CA, NY, DC…), none | none | The state that taxes the income. none: federal tax only. |
profit | Dollars, negative for a loss | 0 | Income 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
| Field | Type | Meaning |
|---|---|---|
input | object | Every parameter as the API understood it, entity and defaults filled in. Send it back to get the same result. |
link | string | The same calculation on the calculator page. |
currency, year | string, number | USD and the tax year. |
tax, afterTax, effectiveRate | number | Federal and state tax together; the profit left; the tax as % of profit (null without a profit). |
marginalRate | number | Federal and state tax on the next $1,000 of profit, %. |
federal | object | profit, stateTaxDeducted, taxable, rate (21), tax. |
state | object or null | code, name, taxable, rate (% on the last dollar), tax. Zero tax, and a note, for states that tax gross receipts or nothing. |
notes[] | array of strings | The 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.