Income Tax Calculator API
The Income Tax Calculator API calculates detailed tax information based on income, location, and filing status using the latest tax rates.
Currently this API supports United States (including state income tax and FICA) and Canada (including provincial income tax). If you would like to see other countries added, please let us know.
Only interested in getting current and historical income tax rates? Check out our Income Tax API.
From 2,366 users
Applications using this API
API Status
API Response Times
Average | P50 | P75 | P90 | P95 |
|---|---|---|---|---|
| 323ms | 346ms | 371ms | 619ms | 1054ms |
Didn't find what you were looking for? Suggest an improvement
/v1/incometaxcalculator GET
https://api.api-ninjas.com/v1/incometaxcalculator
Returns comprehensive tax calculations including federal, state/provincial, and FICA taxes where applicable.
Parameters
countryrequired2-letter country code (e.g., US, CA)
regionrequiredState/province code (e.g., CA, NY, ON)
incomerequiredAnnual income amount
tax_yearoptionalTax year in YYYY format (e.g.,
2026). If not specified, the latest year will be used.filing_statusrequired for USTax filing status. Possible values:
single,married(married filing jointly),married_separate(married filing separately), orhead_of_householddeductionsoptionalTotal tax deductions amount
creditsoptionalTotal tax credits amount
self_employedoptionalSet to true for self-employed tax calculations (US only)
Headers
X-Api-KeyrequiredAPI Key associated with your account.
Response
A JSON object with the following fields or an error if the request is unsuccessful.
countryThe country code used in the calculation.
regionThe state/province code used in the calculation.
incomeThe annual income amount.
taxable_incomeIncome after deductions.
deductionsTotal deductions applied.
creditsTotal tax credits applied.
federal_effective_rateEffective federal tax rate as a decimal.
federal_taxes_owedTotal federal taxes owed.
fica_social_securitypremium onlySocial Security tax amount - US only.
fica_social_security_ratepremium onlySocial Security tax rate as a decimal - US only.
fica_social_security_cappremium onlySocial Security wage base cap - US only.
fica_medicarepremium onlyMedicare tax amount - US only.
fica_medicare_ratepremium onlyMedicare tax rate as a decimal - US only.
fica_totalpremium onlyTotal FICA taxes (Social Security + Medicare taxes) - US only.
region_effective_ratepremium onlyEffective state/provincial tax rate as a decimal.
region_taxes_owedpremium onlyTotal state/provincial taxes owed.
total_taxes_owedpremium onlyTotal taxes owed (federal + state/provincial + FICA).
income_after_taxpremium onlyIncome remaining after all taxes.
total_effective_tax_ratepremium onlyOverall effective tax rate as a decimal.
Sample Request Live Demo!
Try this API endpoint with all available parameters in our API playground
https://api.api-ninjas.com/v1/incometaxcalculator?country=US®ion=CA&income=100000&filing_status=single&tax_year=2026Headers
X-Api-KeyLog in or sign up to get your API KeySample Response
Code Examples
1
2
curl -X GET "https://api.api-ninjas.com/v1/incometaxcalculator?country=US®ion=CA&income=100000&filing_status=single&tax_year=2026" \
-H "X-Api-Key: YOUR_API_KEY"If your programming language is not listed in the Code Example above, you can still make API calls by using a HTTP request library written in your programming language and following the above documentation.