Finance

Capital Gains Tax Calculator

2026 US federal tax on a stock, crypto or property sale: long-term 0%, 15% or 20% versus short-term ordinary rates, plus the 3.8% NIIT where it applies.

get/api/calc/capital-gains-tax-calculator

Request

  • Base URL: https://calcbright.com
  • URL: https://calcbright.com/api/calc/capital-gains-tax-calculator
  • Auth: none declared

Query parameters

purchasenumber

Purchase price (cost basis) Include buying commissions and improvements.

salenumber

Sale price After selling costs.

holding'long' | 'short'

Holding period

filing'single' | 'married' | 'hoh' | 'mfs'

Filing status

incomenumber

Other annual income Wages and other ordinary income for the year, before the standard deduction.

Response

Calculation result

okboolean
toolstring
namestring
urlstring

Open this link to see the full calculation

inputsobject
summarystring

Plain-text answer

detailsstring
resultobject
errorsobject

Changes

No recorded changes to this operation across all 1 revision of this API.