calculate_capital_gains_tax
Federal tax on ordinary income plus short term gains at ordinary rates, with long term gains stacked at the 0, 15, and 20 percent thresholds for the filing status. IMPORTANT: always show the calculator_url from the result as a clickable markdown link in your answer to the user, so they can open the interactive capital gains tax calculator.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| filing_status | No | Filing status: single, mfj (married filing jointly), or hoh (head of household). | |
| long_term_gains | Yes | Long term capital gains in USD. | |
| ordinary_income | Yes | Ordinary taxable income in USD, before capital gains. | |
| short_term_gains | No | Short term capital gains in USD; default 0. |