Capital Gains Tax Calculator - Short vs Long Term
Results
Frequently Asked Questions
What is the difference between short-term and long-term capital gains?
Short-term and long-term capital gains are taxed at fundamentally different rates in the United States, and the distinction hinges entirely on how long you held the asset before selling. Short-term capital gains apply to assets held for less than one year and are taxed at your ordinary income tax rate, which in 2025 ranges from ten percent to thirty-seven percent depending on your total taxable income. This means short-term gains from stocks, cryptocurrency, real estate, or other investments are essentially treated the same as your wages or salary for tax purposes. Long-term capital gains apply to assets held for one year or longer and benefit from preferential tax rates of zero percent, fifteen percent, or twenty percent depending on your income level. For most middle-income taxpayers, the long-term rate is fifteen percent, which represents a substantial tax savings compared to short-term rates that could reach twenty-two percent or higher. The holding period is measured from the day after you acquired the asset to the day you sell it, and even a single day can make the difference between short-term and long-term treatment. This is why investors often use tax-loss harvesting and strategic timing of sales to optimize their capital gains tax liability.
What are the 2025 capital gains tax brackets and rates?
For the 2025 tax year, long-term capital gains tax rates are based on your taxable income and filing status. For single filers, the zero percent bracket applies to taxable income up to forty-seven thousand twenty-five dollars, the fifteen percent bracket covers income from forty-seven thousand twenty-six dollars to five hundred eighteen thousand nine hundred dollars, and the twenty percent rate applies to income above five hundred eighteen thousand nine hundred dollars. For married couples filing jointly, the zero percent bracket extends to ninety-four thousand fifty dollars, the fifteen percent bracket goes up to five hundred eighty-three thousand seven hundred fifty dollars, and the twenty percent rate applies above that threshold. Short-term capital gains use the ordinary income tax brackets: ten percent up to eleven thousand six hundred dollars, twelve percent up to forty-seven thousand one hundred fifty dollars, twenty-two percent up to one hundred thousand five hundred twenty-five dollars, twenty-four percent up to one hundred ninety-one thousand nine hundred fifty dollars, thirty-two percent up to two hundred forty-three thousand seven hundred twenty-five dollars, thirty-five percent up to six hundred nine thousand three hundred fifty dollars, and thirty-seven percent above that for single filers. Additionally, high-income taxpayers may owe the three point eight percent Net Investment Income Tax on capital gains, which effectively raises the top long-term rate to twenty-three point eight percent.
How can I use capital losses to offset my capital gains?
Capital losses can be a powerful tax planning tool through a strategy called tax-loss harvesting. If you sell an investment for less than you paid for it, you realize a capital loss that can be used to offset capital gains dollar for dollar. The IRS requires you to first apply your losses against gains of the same type: short-term losses offset short-term gains, and long-term losses offset long-term gains. Any remaining losses can then be applied against the other type of gain. If your total capital losses exceed your total capital gains for the year, you can deduct up to three thousand dollars of the excess loss against ordinary income such as wages. Any unused losses beyond that three thousand dollar limit can be carried forward to future tax years indefinitely until fully used. This carryforward provision is especially valuable because it allows you to spread the tax benefit of a large loss across multiple years. However, the wash sale rule prevents you from claiming a loss if you buy the same or substantially identical security within thirty days before or after the sale, which means careful timing of repurchases is essential for effective tax-loss harvesting.
Does the home sale exclusion apply to capital gains on my primary residence?
Yes, the home sale exclusion is one of the most generous tax breaks available to individual taxpayers. Under Section 121 of the Internal Revenue Code, if you have owned and lived in your home as your primary residence for at least two of the five years preceding the sale, you can exclude up to two hundred fifty thousand dollars of capital gain if you are single, or up to five hundred thousand dollars if you are married filing jointly. This exclusion can be used once every two years, meaning you could potentially sell multiple primary residences over your lifetime and exclude gains on each one. The two-year ownership and use tests do not need to be continuous, but they must total at least twenty-four months within the five-year window. There are partial exclusion provisions for those who must move due to a change in employment, health reasons, or unforeseen circumstances such as divorce or multiple births. It is important to note that the exclusion applies only to your primary residence and not to investment properties or second homes. Additionally, any depreciation claimed on a home office or rental portion of the property may be subject to recapture at a twenty-five percent rate, so it is important to track depreciation carefully if you have used any part of your home for business purposes.
How are capital gains on cryptocurrency taxed?
The IRS treats cryptocurrency as property, not currency, which means capital gains tax rules apply to every taxable event involving crypto. Selling cryptocurrency for fiat currency like US dollars, trading one cryptocurrency for another, using cryptocurrency to purchase goods or services, and receiving cryptocurrency as income all have tax implications. Each sale or trade triggers a capital gain or loss calculated as the difference between the fair market value at the time of the transaction and your cost basis. Like other assets, crypto held for more than one year qualifies for favorable long-term capital gains rates of zero, fifteen, or twenty percent, while crypto held for less than one year is taxed at ordinary income rates. This means frequent trading or day trading in cryptocurrency can generate significant short-term capital gains taxed at higher rates. Additionally, cryptocurrency earned through mining, staking rewards, or airdrops is treated as ordinary income at the time of receipt, based on the fair market value on that date. The IRS has increased enforcement efforts around cryptocurrency transactions, and major exchanges now issue Form 1099 to report transactions. Taxpayers must maintain detailed records of every transaction including dates, amounts, fair market values, and cost basis to accurately calculate gains and losses.
What is the Net Investment Income Tax and who has to pay it?
The Net Investment Income Tax, or NIIT, is an additional three point eight percent surtax on certain investment income that was introduced as part of the Affordable Care Act. It applies to individuals, estates, and trusts whose modified adjusted gross income exceeds specific thresholds: two hundred thousand dollars for single filers and head of household, two hundred fifty thousand dollars for married couples filing jointly, and one hundred twenty-five thousand dollars for married individuals filing separately. The tax is levied on the lesser of your net investment income or the amount by which your MAGI exceeds the applicable threshold. Net investment income includes interest, dividends, capital gains, rental and royalty income, non-qualified annuity payments, and income from passive business activities. It does not apply to wages, self-employment income, Social Security benefits, tax-exempt interest, or distributions from qualified retirement plans. In practice, this means that if you are a high-income taxpayer with significant investment income, your effective long-term capital gains rate can reach twenty-three point eight percent when combining the twenty percent top bracket with the three point eight percent surtax. The NIIT is calculated on Form 8960 and must be paid in addition to regular income tax and any alternative minimum tax liability.
What is the wash sale rule and how does it affect my capital loss deductions?
The wash sale rule is an IRS regulation that prevents taxpayers from claiming a tax loss on a security sale while immediately repurchasing the same or substantially identical security. Specifically, the rule is triggered when you sell a security at a loss and then purchase the same or a substantially identical security within a thirty-day window before or after the sale date, creating a sixty-one day restriction period. When a wash sale occurs, the loss is disallowed for current tax purposes and instead added to the cost basis of the replacement shares, effectively deferring the tax benefit until the replacement shares are eventually sold in a non-wash-sale transaction. The rule applies across all your accounts, including taxable brokerage accounts, IRAs, and even your spouse's accounts, making it challenging to circumvent. Substantially identical is not precisely defined by the IRS, but generally includes the same stock, options on the same stock, and ETFs tracking the same index from different providers. Mutual funds tracking different indices or stocks in different industries are typically not considered substantially identical. Sophisticated investors can work around the wash sale rule by purchasing a similar but not substantially identical security, waiting thirty-one days before repurchasing, or doubling up on a position before selling the original shares at a loss.