Overview
An income tax API for US federal and state tax calculation, built for apps that need to calculate taxes from a salary. Income Tax Calculator works by applying the official federal income tax brackets to your gross income after the standard deduction. It calculates the tax owed at each bracket level and returns a detailed breakdown including effective and marginal tax rates. Add fica=true to get take-home pay after the employee share of Social Security (capped at that year's wage base) and Medicare, including the 0.9% Additional Medicare Tax, with the FICA amounts themselves itemized on paid plans. Add state with a two-letter code (any of the 50 states or DC) to get state income tax alongside: the state's standard deduction and personal exemption are taken off the same income, its brackets applied, and any exemption credit subtracted, giving state tax, effective and marginal state rates, combined federal and state tax, and income after both. States with no wage income tax return zero. State figures come from the Tax Foundation's annual state table; phase-outs, recapture, local income taxes and credits beyond the exemption credit are not modelled, and the state's footnotes say where they apply.
Live Test Income Tax Calculator API →
Endpoint
One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.
curl "https://api.apiverve.com/v1/incometaxcalculator?income=85000&rate=22&deduction=14600" \
-H "x-api-key: your_api_key_here"const res = await fetch('https://api.apiverve.com/v1/incometaxcalculator?income=85000&rate=22&deduction=14600', {
headers: { 'x-api-key': 'your_api_key_here' },
});
if (!res.ok) throw new Error(`${res.status} ${await res.text()}`);
const { data } = await res.json();
console.log(data);import requests
res = requests.get(
"https://api.apiverve.com/v1/incometaxcalculator?income=85000&rate=22&deduction=14600",
headers={"x-api-key": "your_api_key_here"},
timeout=15,
)
res.raise_for_status()
print(res.json()["data"])package main
import (
"fmt"
"io"
"net/http"
)
func main() {
req, _ := http.NewRequest("GET", "https://api.apiverve.com/v1/incometaxcalculator?income=85000&rate=22&deduction=14600", nil)
req.Header.Set("x-api-key", "your_api_key_here")
res, err := http.DefaultClient.Do(req)
if err != nil {
panic(err)
}
defer res.Body.Close()
out, _ := io.ReadAll(res.Body)
fmt.Println(string(out))
}Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.
Authentication
Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.
A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.
Parameters
Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.
| Parameter | Type | Description |
|---|---|---|
incomeRequired | number | Gross annual income in USD range 0–∞ |
rateRequired | number | Tax rate as a percentage (e.g., 22 for 22%) range 0–100 |
deductionOptional | number | Optional deduction amount to subtract from income before calculating tax range 0–∞ |
Response
Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.
{
"status": "ok",
"error": null,
"data": {
"year": 2025,
"filing_status": "single",
"income": 85000,
"standardDeduction": 15000,
"taxableIncome": 70000,
"totalTax": 10313.88,
"effectiveRate": "12.13%",
"marginalRate": "22%",
"incomeAfterTax": 74686.12,
"monthlyTax": 859.49,
"monthlyIncome": 6223.84,
"brackets": [
{
"rate": 0.1,
"ratePercent": "10.0%",
"rangeMin": 0,
"rangeMax": 11925,
"taxableAmount": 11926,
"taxAmount": 1192.6
},
{
"rate": 0.12,
"ratePercent": "12.0%",
"rangeMin": 11926,
"rangeMax": 48475,
"taxableAmount": 36550,
"taxAmount": 4386
},
{
"rate": 0.22,
"ratePercent": "22.0%",
"rangeMin": 48476,
"rangeMax": 103350,
"taxableAmount": 21524,
"taxAmount": 4735.28
}
],
"fica": {
"total": 6502.5,
"socialSecurityRate": 0.062,
"socialSecurityWageBase": 176100,
"socialSecurityTax": 5270,
"medicareRate": 0.0145,
"medicareTax": 1232.5,
"additionalMedicareThreshold": 200000,
"additionalMedicareTax": 0
},
"takeHomePay": 68183.62,
"monthlyTakeHomePay": 5681.97,
"totalEffectiveRate": "19.78%"
}
}
Response fields
Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.
| Field | Type | Example | Description |
|---|---|---|---|
year | number | 2025 | Tax year used for calculation |
filing_status | string | "single" | Filing status used |
income | number | 85000 | Original gross income provided |
standardDeduction | number | 15000 | Standard deduction applied based on filing status |
taxableIncome | number | 70000 | Income after standard deduction |
totalTax | number | 10313.88 | Total federal tax owed |
effectiveRate | string | "12.13%" | Effective tax rate as percentage |
marginalRate | string | "22%" | Marginal tax rate (highest bracket) |
incomeAfterTax | number | 74686.12 | Take-home income after tax |
monthlyTax | number | 859.49 | Monthly tax amount (totalTax / 12) |
monthlyIncome | number | 6223.84 | Monthly take-home income (incomeAfterTax / 12) |
bracketsPremium | array[3] | Detailed breakdown of tax by bracket | |
ratePremium | number | 0.1 | Marginal rate for the band, as a fraction |
ratePercentPremium | string | "10.0%" | Marginal rate for the band, formatted as a percentage |
rangeMinPremium | number | 0 | Income at which the band starts |
rangeMaxPremium | number | 11925 | Income at which the band ends |
taxableAmountPremium | number | 11926 | How much of the income falls inside this band |
taxAmountPremium | number | 1192.6 | Tax owed on the portion falling in this band |
ficaPremium | object | {...} | Employee FICA on the income as wages; present only with fica=true, null when the wage base for the year is not known |
totalPremium | number | 6502.5 | Total employee FICA: Social Security plus Medicare plus Additional Medicare Tax |
socialSecurityRatePremium | number | 0.062 | Employee Social Security rate, as a fraction (0.042 in 2011-2012) |
socialSecurityWageBasePremium | number | 176100 | Wages above this amount owe no Social Security tax for the year |
socialSecurityTaxPremium | number | 5270 | Employee Social Security tax on wages up to the wage base |
medicareRatePremium | number | 0.0145 | Employee Medicare rate, as a fraction |
medicareTaxPremium | number | 1232.5 | Employee Medicare tax on all wages |
additionalMedicareThresholdPremium | number | 200000 | Wages above which the 0.9% Additional Medicare Tax applies for the filing status; null before 2013 |
additionalMedicareTaxPremium | number | 0 | 0.9% Additional Medicare Tax on wages above the threshold |
takeHomePay | number | 68183.62 | Income after federal income tax and FICA; present only with fica=true |
monthlyTakeHomePayPremium | number | 5681.97 | Monthly take-home pay (takeHomePay / 12); present only with fica=true |
totalEffectiveRatePremium | string | "19.78%" | Federal income tax plus FICA as a percentage of income; present only with fica=true |
Errors
Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.
| Status | Meaning | What to do |
|---|---|---|
400 | Input was rejected | Read error; it names the parameter. |
401 | Key missing or invalid | Check the header name and the key value. |
403 | Key valid, but not permitted | A key restriction or IP allow-list; see key scoping. |
429 | Rate limited, or out of credits | Read error to tell them apart; see rate limits. |
Use cases
- Job Offer Evaluation
- When weighing multiple job offers, candidate compensation portals calculate net take-home pay and federal tax obligations across different filing statuses.
- Payroll Withholding Estimation
- HR platforms estimate employee annual federal tax liability and monthly deductions directly from gross salary inputs to forecast withholdings.
- Retirement Distribution Modeling
- To model retirement drawdowns, financial advisors project changes in effective and marginal rates as client taxable distributions shift across tax bands.
- Custom Rate Invoicing
- Compute estimated tax obligations and remaining net earnings for freelance contracts using custom tax percentages and project deductions.
Other ways to use Income Tax Calculator
Set up Income Tax Calculator on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.
Related
More in Finance: