calculate_federal_tax
Calculate federal income tax for individuals for tax years 2024-2026, including brackets, credits, and deductions. Runs locally with no data sent to servers.
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.
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 | |
| 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 | |
| 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 | Total itemized deductions (if greater than standard deduction) | |
| qualifiedDividends | No | Qualified dividends included in gross income, taxed at preferential rates but not netted with capital losses | |
| 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 | |
| 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 | |
| aotcStudentQualifiedExpenses | No | Qualified AOTC expenses per already-verified eligible student | |
| longTermCapitalLossCarryover | No | Prior-year long-term capital loss carryover as a positive amount | |
| 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 | |
| lifetimeLearningQualifiedExpenses | No | Qualified LLC expenses not used for AOTC or another benefit | |
| marriedFilingSeparatelyLivedWithSpouse | No | ||
| earlyRetirementDistributionSubjectToPenalty | No | Taxable early-distribution amount remaining after exceptions |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | ||
| error | No | ||
| isError | Yes |