compute_return
Compute the COMPLETE Form 1040 bottom-line set in one call — the 17 lines that determine the return (1a, 9, 10, 11, 12e, 15, 16, 17 AMT, 19, 22, 23, 24, 25d, 27a, 28, 32, 33, 34/37), each whole-dollar rounded by the engine. Takes the SAME input as calculate_tax (prefer the documents block: transcribe W-2/1099-R/SSA-1099 boxes and dependent birth dates — SSA-1099s are first-class, box 5 and box 6 are summed for you; the tool derives ages, classifications, Part IV withholding, and penalties deterministically). Never assemble return lines by hand — this tool is the return. TRANSCRIPTION CONVENTIONS: (1) a PRIOR-YEAR Form 1040 in the file supplies CONTINUING conditions the current-year interview omits — the 'Someone can claim: You as a dependent' checkbox and the blindness boxes carry forward unless the current-year data contradicts them; (2) COMMUNITY PROPERTY: do NOT split income 50/50 between MFS spouses when they lived apart all year with no transfers (§ 66(a) allocates earned income to the earner) or when a written separation agreement ended the community — transcribe each document to its named earner; never invent a Form 8958 split the intake does not request; (3) bonus depreciation for assets placed in service 1/1-1/19/2025 is 40% (§ 168(k) pre-OBBBA phase-down; 100% only for property ACQUIRED after 1/19/2025).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| asOf | No | REQUIRED for computation: the law-in-force date — use the intended tax year's year-end (e.g. "2025-12-31" for TY2025). Omitting it is an error, never a default. | |
| state | No | state taxable income for the state tax targets (us.ca/us.va/us.il/us.ny/us.oh/us.nc/us.ga/us.md/us.mo/us.wi/us.mn income_tax; parameters via lookup_tax_parameter) | |
| filing | No | who is filing: status, age/blindness, dependency, student status | |
| income | No | wages, interest, capital gains, unemployment, foreign earned income | |
| target | No | rule to derive (default: net tax; balance due when payments_estimates.federalTaxWithheld is given). Determinations: us.federal.eligible.tips_deduction, us.federal.estimated.quarterly_payment, us.federal.estimated.safe_harbor_met | |
| credits | No | CTC/ODC counts, dependent care, saver's, adoption, education | |
| itemized | No | Schedule A: SALT, mortgage, medical, charitable | |
| documents | No | RAW document transcription (preferred over hand-mapped facts): W-2 boxes, 1099-R boxes/codes, SSA-1099 boxes, dependents' birth dates. SSA-1099s are first-class: box 5 sums into socialSecurityBenefits and box 6 into withholding, so the § 86 taxable-benefits worksheet runs on the transcribed total instead of a hand-mapped guess. The tool derives wages/withholding (incl. Form 8959 Part IV), box-3/5 wage coordination, dependent classifications, age facts, and early-distribution penalties deterministically — and errors if the same value is also passed as a hand-mapped fact. | |
| kiddie_tax | No | Form 8615 inputs for a child subject to § 1(g) | |
| retirement | No | social security, IRA/pension distributions, early-distribution penalty | |
| adjustments | No | IRA/HSA contributions, student-loan and car-loan interest | |
| investor_amt | No | AMT preferences (ISO spread) and § 1202 QSBS exclusion | |
| tips_overtime | No | § 224 tips and § 225 overtime deductions (OBBBA) | |
| healthcare_ptc | No | § 36B premium tax credit / Form 1095-A reconciliation | |
| rentals_passive | No | Schedule E rentals/royalties + § 469 passive-loss netting (Form 8582 via us.federal.passive_loss_allowed) | |
| self_employment | No | Schedule C / K-1, QBI inputs, SE deductions, home office | |
| household_employer | No | Schedule H nanny/household-employee taxes | |
| payments_estimates | No | withholding, prior-year safe harbor, annualized installments |