Estimate US federal income tax
estimate_federal_taxUse this when the user wants a rough US federal income tax figure, for example "how much federal tax on $90,000 of wages", "estimate my tax with $40,000 of freelance income", "what is my marginal rate". Pass the tax year, filing_status (single, mfj, mfs, hoh) and wages in dollars, and optionally self_employment_income, other_ordinary_income, long_term_capital_gains and adjustments. It uses the standard deduction and adds self-employment tax (with the Social Security wage base and the half-deduction), the Additional Medicare Tax and long-term capital gains rates. Returns taxable income, ordinary tax, capital gains tax, self-employment tax, total, marginal and effective rate, the assumptions made and a not_included list (credits, state tax, alternative minimum tax, itemized deductions and more). It is an estimate, not tax advice, and it is not a return.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | Yes | The tax year (the year the income was earned). Available: 2025, 2026. | |
| wages | Yes | Taxable wages for the year in US dollars (W-2 box 1), for everyone on the return. 0 if none. | |
| adjustments | No | Deductions taken from income before the standard deduction, such as IRA or HSA contributions, in US dollars. Optional. | |
| filing_status | Yes | single, mfj (married filing jointly), mfs (married filing separately) or hoh (head of household). | |
| other_ordinary_income | No | Other income taxed at ordinary rates in US dollars, such as interest or short-term gains. Optional. | |
| self_employment_income | No | Net profit from self-employment in US dollars (after business expenses). Optional. | |
| long_term_capital_gains | No | Long-term capital gains and qualified dividends in US dollars. Optional. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| year | No | ||
| total | No | ||
| se_tax | No | ||
| status | Yes | ||
| message | No | ||
| sources | No | ||
| disclaimer | No | ||
| assumptions | No | ||
| gross_income | No | ||
| not_included | No | ||
| ordinary_tax | No | ||
| filing_status | No | ||
| last_verified | No | ||
| marginal_rate | No | Rate on the next dollar of ordinary income, as a fraction (0.22 is 22%). | |
| effective_rate | No | total divided by gross_income, as a fraction. | |
| taxable_income | No | ||
| capital_gains_tax | No | ||
| standard_deduction | No | ||
| additional_medicare_tax | No |