Estimate federal income and self-employment tax
estimate_federal_taxEstimates a year's U.S. federal income tax plus self-employment tax, the refund or balance due after withholding and estimated payments, marginal and effective rates, a bracket-by-bracket breakdown and, when prior-year figures are given, the safe-harbor quarterly estimated payment. Also answers 'how much more can I earn, withdraw from a 401(k) or convert to a Roth IRA before the next bracket': the room left in the current bracket, the room before qualified dividends / long-term gains lose the 0% rate, and the tax on a planned extra amount. Uses the standard deduction (with the age-65+ addition) unless larger itemized deductions are given; the 2025–2028 $6,000 senior deduction per person 65+ with phase-out (not available when married filing separately); qualified dividends and long-term gains at 0%/15%/20%; child tax credit with phase-out; Social Security wage base and Additional Medicare tax. Federal only: no state tax, AMT, NIIT, QBI deduction, IRMAA or other credits.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"filing_status": "<filing_status>",
"tax_year": "<tax_year>",
"total_income": "<total_income>"
},
"name": "estimate_federal_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tax_year | Yes | Tax year: 2025 or 2026. | |
| w2_wages | No | W-2 wages (Social Security / Medicare wages), USD; reduces the self-employment Social Security tax room. 0 if none. | |
| total_income | Yes | Total income for the year before deductions, USD: wages, interest, dividends, other income and self-employment profit together. | |
| filing_status | Yes | Federal filing status. | |
| prior_year_agi | No | Last year's adjusted gross income, USD (decides 100% vs 110% safe harbor). | |
| federal_withholding | No | Federal income tax withheld for the year (W-2 box 2, 1099 withholding), USD; add any Additional Medicare tax an employer withheld (Form 8959 line 24) if known. | |
| itemized_deductions | No | Total itemized deductions (Schedule A), USD. Used only when larger than the standard deduction. | |
| qualifying_children | No | Children under 17 who qualify for the child tax credit. | |
| planned_extra_income | No | What-if: extra ordinary income being considered for the year (401(k) or IRA withdrawal, Roth conversion, bonus), USD, NOT included in total_income. Returns the tax it adds and the marginal rate after. | |
| prior_year_total_tax | No | Last year's total federal tax, USD. Give it to get the quarterly safe-harbor payment; 0 means last year's tax really was $0 (then no estimates are required). Omit if unknown. | |
| self_employment_profit | No | Net self-employment profit (Schedule C), USD. Already included in total_income; used for self-employment tax. | |
| estimated_payments_made | No | Federal estimated tax payments already made for this year, USD. | |
| taxpayers_age_65_or_older | No | Taxpayers on the return who are 65 or older by year end: 0 or 1, or 2 only for married_filing_jointly. Adds the age-65+ standard deduction and the $6,000 senior deduction (2025–2028; not for married_filing_separately). | |
| qualified_dividends_and_long_term_gains | No | Qualified dividends (1099-DIV box 1b) plus net long-term capital gains, USD. Part of total_income; taxed at 0%/15%/20% stacked on top of ordinary income. |