calculate_federal_tax
Calculates federal income tax for individuals by tax year and filing status, including bracket breakdown, effective and marginal rates, self-employment tax, NIIT, capital gains, QBI, and credits.
Instructions
Calculate federal income tax for an individual taxpayer. Supports TY2024 through TY2026. Includes bracket breakdown, effective/marginal rates, SE tax, NIIT, Additional Medicare Tax, QBI deduction, capital gains, and child tax credit. All calculations run locally — no data is sent to any server.
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": {
"taxYear": "<taxYear>",
"filingStatus": "<filingStatus>",
"grossIncome": "<grossIncome>"
},
"name": "calculate_federal_tax"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| blind | No | Taxpayer is blind | |
| taxYear | Yes | Tax year (2024, 2025, or 2026) | |
| w2Income | No | W-2 wage income | |
| dependents | No | Legacy count of qualifying child dependents for nonrefundable CTC only | |
| grossIncome | Yes | Total gross income including supplied capital gains, qualified dividends, Social Security benefits, and gross retirement distributions | |
| hasForm2555 | No | Whether Form 2555 is filed, which makes ACTC unavailable | |
| spouseBlind | No | Spouse is blind | |
| age65OrOlder | No | Taxpayer is 65 or older | |
| capitalGains | No | Long-term capital gains (can be negative for losses) | |
| earnedIncome | No | Schedule 8812 earned income used for ACTC | |
| filingStatus | Yes | Filing status | |
| qualifiedTips | No | TY2025+ Schedule 1-A: qualified tips from a listed tipped occupation | |
| stateTaxDeducted | No | State/local taxes included in itemized deductions (for AMT) | |
| isoExerciseSpread | No | ISO stock option exercise spread (for AMT calculation) | |
| taxExemptInterest | No | Tax-exempt interest used by the Publication 915 worksheet | |
| earnedIncomeCredit | No | EITC used by the 3-or-more-child ACTC payroll-tax method | |
| itemizedDeductions | No | Schedule A total after the SALT cap and medical floor, before the TY2026 charitable floor and 2/37 limit | |
| qualifiedDividends | No | Qualified dividends included in gross income, taxed at preferential rates but not netted with capital losses | |
| spouseAge65OrOlder | No | Spouse is 65 or older | |
| spouseEarnedIncome | No | MFJ only: spouse's earned income, already included in w2Income or earnedIncome | |
| netInvestmentIncome | No | Total net investment income for NIIT, including taxable interest, dividends, gains, rents, royalties, and passive income | |
| capitalGainsLongTerm | No | Whether capital gains are long-term (default: true) | |
| selfEmploymentIncome | No | Self-employment income (Schedule C) | |
| aotcRefundableAllowed | No | Whether refundable AOTC is allowed after under-age-24 support rules | |
| dependentCareExpenses | No | Form 2441 work-related care expenses paid | |
| otherDependentsForOdc | No | Dependents already verified for the nonrefundable Credit for Other Dependents | |
| shortTermCapitalGains | No | Short-term capital gain or loss | |
| aboveTheLineDeductions | No | Above-the-line deductions (HSA, student loan interest, etc.) | |
| socialSecurityBenefits | No | Net Social Security benefits included in grossIncome | |
| qualifiedBusinessIncome | No | Qualified Business Income for Section 199A deduction | |
| qualifiedBusinessIsSstb | No | Whether the business is a specified service trade or business | |
| retirementDistributions | No | Gross Form 1099-R distributions included in grossIncome | |
| socialSecurityTaxesPaid | No | Schedule 8812 payroll-tax amount for the 3-or-more-child ACTC method | |
| qualifiedBusinessW2Wages | No | Section 199A W-2 wages; pass 0 when none | |
| qualifyingChildrenForCtc | No | Children already verified as CTC/ACTC qualifying children under age 17 with required SSNs | |
| charitableCashContributions | No | TY2026+: qualifying cash gifts to public charities (not donor-advised funds) for the non-itemizer deduction | |
| aotcStudentQualifiedExpenses | No | Qualified AOTC expenses per already-verified eligible student | |
| longTermCapitalLossCarryover | No | Prior-year long-term capital loss carryover as a positive amount | |
| qualifiedVehicleLoanInterest | No | TY2025+ Schedule 1-A: interest on a loan for a new US-assembled personal vehicle | |
| dependentCareBenefitsExcluded | No | Employer dependent care benefits excluded from wages (W-2 box 10) | |
| qualifiedOvertimeCompensation | No | TY2025+ Schedule 1-A: FLSA overtime premium (the half of time-and-a-half) | |
| shortTermCapitalLossCarryover | No | Prior-year short-term capital loss carryover as a positive amount | |
| qualifiedBusinessPropertyBasis | No | Unadjusted basis immediately after acquisition of qualified property; pass 0 when none | |
| taxableRetirementDistributions | No | Taxable Form 1099-R amount | |
| itemizedCharitableContributions | No | TY2026+: charitable portion of itemizedDeductions, for the 0.5% of AGI floor | |
| lifetimeLearningQualifiedExpenses | No | Qualified LLC expenses not used for AOTC or another benefit | |
| dependentCareQualifyingIndividuals | No | Qualifying individuals for the Child and Dependent Care Credit | |
| marriedFilingSeparatelyLivedWithSpouse | No | ||
| qualifiedBusinessMaterialParticipation | No | TY2026+: taxpayer materially participates, enabling the $400 minimum QBI deduction | |
| earlyRetirementDistributionSubjectToPenalty | No | Taxable early-distribution amount remaining after exceptions |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| error | No | ||
| isError | Yes |