How to Calculate Net Short-Term Gain or Loss
When you sell or exchange a capital asset, determining your net short-term gain or loss is a critical first step before you file your tax return. Whether you are an active trader, a casual investor, or someone who sold a single stock during the year, the netting process follows a consistent set of rules. Getting this calculation right affects your tax liability, your ability to offset other income, and the accuracy of your Schedule D and Form 8949.
Short-term gains and losses are treated differently from long-term gains and losses under the U.S. tax code because they are ultimately taxed at ordinary income rates rather than preferred long-term capital gains rates. This makes the net short-term result particularly sensitive for tax planning. Even if your total portfolio shows a profit, a large short-term loss can reduce your adjusted gross income by up to $3,000 per year, while a net short-term gain can significantly raise your tax bill.
The good news is that the calculation itself is straightforward once you understand the aggregation rules and the proper order of operations. In this guide, we walk through every step needed to arrive at your net short-term gain or loss, explain the key differences from long-term treatment, and show how to report the final number on IRS forms.
Quick Answer

To calculate your net short-term gain or loss, total all short-term gains and short-term losses from sales of capital assets held one year or less. Then subtract short-term losses from short-term gains. If the result is positive, you have a net short-term gain. If it is negative, you have a net short-term loss, which can offset long-term gains and up to $3,000 of ordinary income.
Understanding Short-Term Capital Gains and Losses

A short-term capital gain or loss arises when you sell a capital asset that you held for one year or less. The IRS defines a capital asset as almost anything you own for personal or investment purposes, including stocks, bonds, mutual fund shares, real estate (other than your primary residence in many cases), and cryptocurrency. The holding period starts the day after you acquire the asset and ends on the day you sell it. Counting both the purchase date and the sale date is important because a one-year holding period must be met to move the transaction into long-term territory.
For example, if you buy a stock on January 15 and sell it on January 15 of the following year, you held it for exactly one year. That transaction is still short-term because the holding period is not more than one year. To be long-term, you must hold the asset for more than one year. This nuance frequently causes errors, especially when investors sell a position on the anniversary of the purchase and assume it qualifies as long-term.
Short-term gains are taxed as ordinary income according to your marginal tax bracket. In contrast, long-term gains enjoy rates of 0%, 15%, or 20% depending on your taxable income. This differential treatment is why calculating your net short-term gain or loss separately from long-term results is so important — it determines how much of your gain is taxed at higher rates.
Key Definitions and Rules

Before performing the netting calculation, you need to be familiar with several core concepts:
- Capital asset: Generally any property you own except inventory, accounts receivable, depreciable business property, and certain other exceptions.
- Holding period: The length of time you owned the asset before selling it. A holding period of one year or less produces a short-term result.
- Basis and adjusted basis: Usually your original purchase price plus commissions, fees, and purchase-related costs, adjusted for events such as stock splits, dividends, and return of capital distributions.
- Amount realized: The total selling price minus brokerage commissions and other selling expenses.
- Capital gain or loss: The amount realized minus the adjusted basis. If the result is positive, you have a gain; if negative, a loss.
- Netting process: The IRS requires you to combine all short-term transactions first, then separately combine all long-term transactions. The two groups are then netted against each other only after each group is netted internally.
- Wash sale rule: If you sell a security at a loss and buy the same or a substantially identical security within 30 days before or after the sale, the loss is disallowed for the current year and added to the basis of the new shares. This rule applies to both short-term and long-term losses, but it often affects short-term traders most frequently.
How to Calculate Your Net Short-Term Gain or Loss

The calculation of your net short-term gain or loss is a multi-step process that brings together every short-term transaction you had during the tax year. You must follow the netting hierarchy carefully. Here is the step-by-step approach:
Step 1: Gather All Short-Term Transactions
Collect your brokerage statements, trade confirmations, and any other records that document sales of capital assets during the tax year. Separate out all transactions where the holding period was one year or less. Be thorough — even a single forgotten sale can throw off your net number. For each short-term sale, you will need the date acquired, date sold, proceeds (amount realized), and cost or other basis.
Step 2: Confirm the Holding Period
Double-check that every transaction you classified as short-term truly falls within the one-year-or-less window. If you sold multiple lots of the same stock on the same day but used different acquisition dates, each lot must be evaluated separately. Many brokers provide holding period information on Form 1099-B, but you should verify it yourself, especially for stocks acquired through dividend reinvestment plans or employer stock plans where basis reporting can be incomplete.
Step 3: Compute Gain or Loss for Each Transaction
For each short-term sale, subtract the adjusted basis from the net proceeds. The formula is:
Gain (or loss) = Amount realized – Adjusted basis
If the result is positive, you have a short-term capital gain. If negative, a short-term capital loss. Wash sale adjustments must be incorporated here: add the disallowed loss to the basis of the replacement shares, which may affect the gain or loss on a future sale. Your broker’s Form 1099-B may show a “W” code in box 1f for wash sales, but you are responsible for accurate basis calculations.
Step 4: Separate Gains and Losses
Create two lists: one for all short-term gains and one for all short-term losses. List each gain amount as a positive number and each loss amount as a negative number. This simple organization prepares you for the netting step without mixing signs.
Step 5: Total the Short-Term Gains
Add up all the individual short-term gain amounts. Write down the total. This total represents your gross short-term capital gains before any loss offset.
Step 6: Total the Short-Term Losses
Add up all the individual short-term loss amounts. You should now have a single negative number equal to the sum of all short-term losses.
Step 7: Net the Two Totals Together
Add the total short-term gains (a positive number) and the total short-term losses (a negative number). The resulting number is your net short-term gain or loss. If the sum is positive, you have a net short-term capital gain. If the sum is negative, you have a net short-term capital loss.
Step 8: Apply Capital Loss Limitations
If your net short-term gain or loss is a loss, you cannot deduct the entire amount against ordinary income in a single year unless it is small. First, you must net your net short-term loss against any net long-term capital gain. If, after netting, you still have an overall net capital loss (the total of short-term and long-term results is negative), you can deduct up to $3,000 ($1,500 if married filing separately) of that loss against other income. Any remaining loss carries forward to future tax years. The carried-forward loss retains its character as short-term or long-term, which matters for future netting.
How Net Short-Term Gain or Loss Differs from Long-Term Treatment

The IRS netting process demands that you first compute your net short-term gain or loss and your net long-term gain or loss independently. Only after you have those two net numbers do you combine them to determine the overall capital gain or loss for the year. This two-step hierarchy ensures that short-term losses first offset short-term gains, and long-term losses first offset long-term gains, before the two categories interact.
Consider an example: You have $10,000 in short-term gains, $4,000 in short-term losses, $6,000 in long-term gains, and $8,000 in long-term losses. You would net short-term items first: $10,000 – $4,000 = $6,000 net short-term gain. Then net long-term items: $6,000 – $8,000 = $2,000 net long-term loss. Now combine the net short-term gain and net long-term loss: $6,000 – $2,000 = $4,000 overall net capital gain. The character of the overall gain follows the netting rules. In this case, because the net short-term gain exceeds the net long-term loss, the overall gain is treated as short-term and taxed at ordinary rates. If the long-term loss had been larger, it could have reduced or eliminated the short-term gain.
This order of operations is mandatory. You cannot arbitrarily offset a short-term loss against a long-term gain before completing the category netting. Doing so would change the character and tax rate of the resulting gain. Understanding this distinction helps you appreciate why the net short-term gain or loss calculation is a standalone figure before the cross-category netting.
Reporting Your Net Short-Term Gain or Loss on Form 8949 and Schedule D

Once you have calculated your net short-term gain or loss, you must report it using Form 8949 and Schedule D of your individual tax return (Form 1040). The process works like this:
On Form 8949, Part I is reserved for short-term transactions for which your basis was reported to the IRS and for which you have no adjustments. If you have transactions that need adjustments (such as a wash sale loss disallowed, a corrected basis, or a sale where basis was not reported), you use the appropriate box in Part I or the separate sections of Form 8949. Each short-term sale is listed individually with the description, acquisition date, sale date, proceeds, basis, and resulting gain or loss. You then total the gains and losses from all your short-term transactions on Form 8949.
The totals from Form 8949 flow to Schedule D, line 1b (for short-term totals where basis was reported to the IRS). If you have multiple Forms 8949, you sum them on Schedule D. The bottom line of the short-term section, Schedule D line 7, is your net short-term gain or loss. This number then moves to the combination section of Schedule D, where it is netted with any net long-term gain or loss from line 15. The final net capital gain or loss is reported on Form 1040.
Be meticulous when transferring numbers. A misreported short-term loss can cause the IRS to disallow a deduction or require additional documentation. Many tax software programs automate the calculation once you enter your trades, but you still need to understand the output and confirm that your net short-term gain or loss matches your records.
Special Situations and Planning Tips

Wash Sale Adjustments
A wash sale occurs when you sell a security at a loss and then repurchase the same or a substantially identical security within the 61-day window (30 days before the sale, the day of the sale, and 30 days after). The loss is disallowed and must be added to the cost basis of the new shares. This can change a short-term loss into a smaller loss, or even turn it into a gain on a future sale. Always adjust your net short-term gain or loss for any disallowed wash sale amounts to avoid underreporting income.
Traders and Mark-to-Market Elections
Active traders who qualify for trader tax status and make a timely mark-to-market election treat gains and losses from trading securities as ordinary income, not capital gains. In that case, the concepts of short-term and long-term holding periods do not apply, and the netting rules change. If you are a mark-to-market trader, you will report your trading results on Form 4797 instead of Schedule D, and you will not calculate a net short-term gain or loss under the capital gain rules. This is a specialized area that requires professional guidance.
Tax-Loss Harvesting and the $3,000 Limit
Many investors deliberately sell losing positions before year-end to realize short-term losses that can offset short-term gains or ordinary income. Because a net short-term loss can be more valuable for offsetting high-bracket ordinary income than a long-term loss, tax-loss harvesting often focuses on short-term holdings. Just be mindful of the wash sale rule, and remember that any net capital loss beyond $3,000 must be carried forward. Proper planning can smooth the tax impact over several years.
FAQ

What is the difference between a net short-term gain and a net short-term loss?
A net short-term gain means your total short-term gains exceed your short-term losses, and that amount is taxed as ordinary income. A net short-term loss means your short-term losses exceed your gains, and that loss can first offset long-term gains and then up to $3,000 of other income.
Can I offset a net short-term gain with long-term losses?
Yes, but only after you have calculated your net short-term gain or loss and your net long-term gain or loss separately. If you have a net short-term gain and a net long-term loss, the long-term loss will offset the short-term gain on Schedule D, potentially reducing the amount taxed at ordinary rates.
Where on my tax return do I report my net short-term gain or loss?
Your net short-term gain or loss is reported on Schedule D, line 7, after you transfer totals from Form 8949, where each short-term sale is listed individually. The final number then combines with long-term results on Schedule D and flows to Form 1040.
Do I have to list every short-term trade separately, or can I report a summary?
In most cases, you must report each short-term transaction individually on Form 8949 unless you receive a consolidated Form 1099-B that allows for summary reporting and you meet the IRS requirements. Always check the instructions for exception rules, but leg-by-leg reporting is the standard.
How do wash sales affect my net short-term gain or loss calculation?
If a short-term loss is disallowed due to a wash sale, you cannot deduct that loss in the current year. Instead, you add the disallowed amount to the basis of the replacement shares, which will affect the gain or loss when you eventually sell those shares. Your current-year net short-term gain or loss must therefore exclude the disallowed loss.
Is a net short-term loss automatically deductible in full?
No. After using your net short-term loss to offset any net long-term gain, you can deduct only up to $3,000 ($1,500 if married filing separately) of any remaining net capital loss against ordinary income. The excess loss is carried forward to the following tax year and retains its short-term character.
A Practical Example to Solidify the Process

Assume during the year you had the following short-term transactions:
- Sale of Stock A: held 6 months, resulting in a gain of $5,000
- Sale of Stock B: held 3 months, resulting in a loss of $2,000
- Sale of Crypto C: held 8 months, resulting in a loss of $1,000
- Sale of ETF D: held 11 months, resulting in a gain of $4,000
Total short-term gains: $5,000 + $4,000 = $9,000
Total short-term losses: $2,000 + $1,000 = $3,000
Net short-term gain: $9,000 – $3,000 = $6,000
You would then net this $6,000 net short-term gain with your net long-term results on Schedule D. If your long-term transactions yielded a net long-term loss of $2,000, your overall capital gain for the year would be $4,000, taxed as short-term ordinary income.
Final Thoughts on Accuracy and Compliance

Calculating your net short-term gain or loss correctly is the cornerstone of capital gains tax reporting. The IRS receives a copy of your Form 1099-B, so any discrepancy between your reported short-term result and the broker’s records can trigger an audit or notice. Always reconcile your 1099-B proceeds and basis data with your personal records, adjust for wash sales and corporate actions, and follow the netting hierarchy precisely. With careful attention to each step, you can report your net short-term gain or loss confidently and avoid costly mistakes.