calculate_us_capital_gains
Calculate US capital gains tax: enter purchase price, sale price, holding period, and filing status to receive tax amount and gain type (short-term or long-term).
Instructions
Calculate US capital gains tax — short-term (ordinary rates) or long-term (preferential rates). Returns: {tax, gain_type}. See list_bundles for related 'finance-us' calculators.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| purchase_price | Yes | Original purchase price in USD | |
| sale_price | Yes | Sale price in USD | |
| holding_period_months | Yes | Holding period in months | |
| filing_status | No | Filing status for rate thresholds | single |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | Computed result. Object whose fields depend on the tool (e.g. {tax, marginal_rate, brackets} for tax tools, {volume_l, gallons} for volume tools). | |
| formula | No | Human-readable formula or method used (e.g. "I=P·r·t", "Magnus formula"). | |
| source | No | Authoritative source for the rule or formula (e.g. "Article 197 CGI", "NF DTU 21"). | |
| reference_url | No | Link to a calcul2 page documenting the calculation in detail. |