# Income Tax Calculator API

> Income Tax Calculator computes US federal income tax and take-home pay from gross income and filing status. It outputs total tax owed, effective and marginal rates, standard deductions, and net monthly income, can add Social Security and Medicare (FICA) for true take-home pay, and with state=NY adds that state's income tax on the same income.

**Endpoint:** `GET https://api.apiverve.com/v1/incometaxcalculator`  
**Category:** Finance  
**Cost:** 2 credits per call  
**Canonical page:** https://apiverve.com/marketplace/incometaxcalculator

## 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.

## Authentication

Every call carries your key in an `x-api-key` header. The same key works across the whole
APIVerve catalog — there are no per-API subscriptions. Responses always use the same three
top-level keys: `status`, `error`, and `data`.

## Example request

```bash
curl "https://api.apiverve.com/v1/incometaxcalculator?income=85000&rate=22&deduction=14600" \
  -H "x-api-key: YOUR_API_KEY"
```

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `income` | number | Yes | Gross annual income in USD. range 0-inf |
| `rate` | number | Yes | Tax rate as a percentage (e.g., 22 for 22%). range 0-100 |
| `deduction` | number | No | Optional deduction amount to subtract from income before calculating tax. range 0-inf |

## Response fields

- `year` — number
- `filing_status` — string
- `income` — number · Original gross income provided
- `standardDeduction` — number
- `taxableIncome` — number · Income after deduction
- `totalTax` — number · Total tax amount calculated
- `effectiveRate` — string
- `marginalRate` — string
- `incomeAfterTax` — number · Take-home income after tax
- `monthlyTax` — number · Monthly tax amount (totalTax / 12)
- `monthlyIncome` — number · Monthly take-home income (incomeAfterTax / 12)
  - `brackets.0.rate` — number · Tax rate used for calculation (as percentage)
  - `brackets.0.ratePercent` — string
  - `brackets.0.rangeMin` — number
  - `brackets.0.rangeMax` — number
  - `brackets.0.taxableAmount` — number
  - `brackets.0.taxAmount` — number
- `fica` — object
  - `fica.total` — number
  - `fica.socialSecurityRate` — number
  - `fica.socialSecurityWageBase` — number
  - `fica.socialSecurityTax` — number
  - `fica.medicareRate` — number
  - `fica.medicareTax` — number
  - `fica.additionalMedicareThreshold` — number
  - `fica.additionalMedicareTax` — number
- `takeHomePay` — number
- `monthlyTakeHomePay` — number
- `totalEffectiveRate` — string

## Sample response

```json
{
  "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%"
  }
}
```

## 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.

## SDKs

- **npm** — `npm install @apiverve/incometaxcalculator` (https://www.npmjs.com/package/@apiverve/incometaxcalculator)
- **PyPI** — `pip install apiverve-incometaxcalculator` (https://pypi.org/project/apiverve-incometaxcalculator/)
- **NuGet** — `dotnet add package APIVerve.API.IncomeTaxCalculator` (https://www.nuget.org/packages/APIVerve.API.IncomeTaxCalculator)
- **Source** — https://github.com/apiverve/incometaxcalculator-api

## More

- Full reference: https://docs.apiverve.com/ref/incometaxcalculator
- Get an API key: https://dashboard.apiverve.com
- Full catalog: https://apiverve.com/marketplace
