Stock sale taxes: long-term vs short-term in plain English
When you sell stocks, mutual funds, or other investments, the IRS doesn't just tax the money you receive. They tax the profit, or what you earned above what you paid. This profit is called a capital gain, and the tax you pay is the capital gains tax.
The single biggest factor determining your tax bill is how long you owned the investment before selling it. This splits your gain into one of two categories: short-term or long-term. The difference isn't just a label; it's a major difference in the tax rates you'll pay. Understanding this distinction is crucial for any investor, as it can significantly impact your net returns and inform smarter selling decisions throughout the year.
This guide breaks down stock sale taxes in plain English, focusing on what U.S. taxpayers need to know about long-term versus short-term capital gains, the documents you must keep, and the practical steps to take at tax time.
The Core Difference: Your Holding Period
The dividing line between short-term and long-term capital gains is one of the simplest rules in the tax code. It all comes down to how long you held the asset.
What Counts as a Short-Term Capital Gain?
If you sell an investment that you owned for one year or less, any profit is a short-term capital gain. The clock starts ticking the day after you acquire the stock and ends on the day you sell it.
Key Point: Short-term capital gains are not taxed at special capital gains rates. Instead, they are added to your total ordinary income—like wages from your job, freelance income, or interest—and taxed at your regular federal income tax rate. These rates for the current tax year can range from 10% to 37%, depending on your total taxable income and filing status.
What Counts as a Long-Term Capital Gain?
If you sell an investment that you owned for more than one year, any profit is a long-term capital gain. This means you must have held the asset for at least one year and one day.
Key Point: Long-term capital gains benefit from preferential tax rates, which are typically much lower than ordinary income tax rates. These rates are 0%, 15%, or 20%, depending on your total taxable income. For most middle-income taxpayers, the 15% rate applies.
Why the Holding Period Rule Matters So Much
The tax rate difference is substantial. Imagine you are in the 24% ordinary income tax bracket. If you have a $10,000 short-term gain, you could owe $2,400 in federal tax. If that same $10,000 gain is long-term, you would likely pay only $1,500 in tax at the 15% rate—a savings of $900.
This rule incentivizes long-term investing from a tax perspective. It's a powerful reason to think carefully before selling an investment you've held for just under a year.
Calculating Your Gain or Loss: It Starts with Cost Basis
Whether a gain is short-term or long-term, you must first calculate the profit (or loss). The formula is simple: Sale Price - Cost Basis = Capital Gain (or Loss).
The sale price is what you sold the investment for, minus any commissions or fees. The cost basis is generally what you paid for it, plus any commissions or fees you paid to buy it. This seems straightforward, but tracking your basis accurately is critical and can get complicated.
Common Cost Basis Scenarios:
- Simple Purchase: You buy 10 shares of a stock for $50 each, paying a $10 commission. Your total cost basis is (10 x $50) + $10 = $510.
- Reinvested Dividends: If you have automatic dividend reinvestment, each reinvestment is a new purchase. You must track the basis of each small lot of shares purchased with dividends.
- Stock Splits or Mergers: Corporate actions adjust your basis. If you owned 10 shares at $100 each ($1,000 basis) and a 2-for-1 split occurs, you now own 20 shares. Your basis per share becomes $50 ($1,000 / 20 shares), but your total basis remains $1,000.
- Inherited Stock: Your basis is usually the fair market value of the stock on the date of the original owner's death. This is often called a "step-up" in basis and can eliminate capital gains tax on growth that happened during the previous owner's lifetime.
- Gifted Stock: Your basis is generally the same as the giver's basis (carryover basis). The holding period also includes the time the giver held the stock.
The Tax Rates: A Detailed Look
Short-Term Capital Gains Tax Rates
Short-term gains are taxed as ordinary income. Your tax bracket depends on your taxable income, which is your total income minus deductions (standard or itemized). The brackets are adjusted annually for inflation.
Here is a simplified look at how short-term gains stack onto your other income:
| If Your Taxable Income Is (Single Filer 2024 Estimates): | Your Short-Term Gains Are Taxed At: |
|---|---|
| Up to $11,600 | 10% |
| $11,601 to $47,150 | 12% |
| $47,151 to $100,525 | 22% |
| $100,526 to $191,950 | 24% |
| $191,951 to $243,725 | 32% |
| $243,726 to $609,350 | 35% |
| Over $609,350 | 37% |
(Rates and brackets are for illustration. Always check IRS.gov for the current year's official brackets.)
Long-Term Capital Gains Tax Rates
Long-term gains have their own set of brackets, which also depend on your taxable income.
| If Your Taxable Income Is (Single Filer 2024 Estimates): | Your Long-Term Gains Are Taxed At: |
|---|---|
| Up to $47,025 | 0% |
| $47,026 to $518,900 | 15% |
| Over $518,900 | 20% |
(Rates and brackets are for illustration. Married filing jointly and other statuses have different thresholds. Always check IRS.gov for current, official rates.)
The 3.8% Net Investment Income Tax (NIIT): Higher-income taxpayers may owe an additional 3.8% tax on some or all of their net investment income, which includes capital gains (both short and long-term). This applies if your Modified Adjusted Gross Income (MAGI) exceeds $200,000 (single) or $250,000 (married filing jointly).
Reporting Stock Sales on Your Tax Return
You will report all capital gains and losses on IRS Form 8949, Sales and Other Dispositions of Capital Assets. You must list each sale separately, indicating the description of the asset, date acquired, date sold, proceeds, cost basis, and the resulting gain or loss. Crucially, you must also check a box to indicate whether the gain or loss is short-term or long-term.
The totals from Form 8949 then transfer to Schedule D (Form 1040), Capital Gains and Losses, where your net gain or loss is calculated. The final net capital gain figure flows to your Form 1040.
Where Your Tax Documents Come From: Your brokerage firm is required to provide you with Form 1099-B, Proceeds from Broker and Barter Exchange Transactions, by mid-February. This form reports the gross proceeds from your sales. Many brokers also report the cost basis to the IRS (this is mandatory for most stocks acquired after 2011). You must use the information from your 1099-B to complete Form 8949.
Offsetting Gains with Losses: Tax-Loss Harvesting
You don't just pay tax on gains in isolation. You can use capital losses to offset capital gains, which is a powerful tax-planning tool called tax-loss harvesting.
- Offset Like with Like: First, short-term losses offset short-term gains. Long-term losses offset long-term gains.
- Mix and Match: If you have a net loss in one category, it can offset net gains in the other. For example, a net long-term loss can be used to offset net short-term gains.
- Deduct Against Income: If your total capital losses exceed your total capital gains for the year, you can deduct up to $3,000 ($1,500 if married filing separately) of the excess loss against your ordinary income (like wages).
- Carry Forward: Any remaining loss beyond that $3,000 limit can be carried forward to future tax years indefinitely, following the same offsetting rules.
Important Wash Sale Rule: Be careful. The IRS prohibits claiming a loss on a security if you buy a "substantially identical" security 30 days before or after the sale. This is called the wash sale rule. If you trigger it, your loss is disallowed for the current year and is added to the cost basis of the newly purchased shares.
State Taxes on Capital Gains
Remember, you likely have state income tax obligations too. Most states that have an income tax also tax capital gains. However, they do not always follow the federal distinction between short-term and long-term.
- Some states tax all capital gains as ordinary income.
- Others have their own preferential rates for long-term gains, which may differ from federal rates.
- A few states have no income tax at all (e.g., Texas, Florida, Nevada, Washington, Wyoming, South Dakota, Alaska, Tennessee, and New Hampshire—though NH does tax interest and dividends).
You must check with your state tax agency to understand how your state treats investment income. You will typically report the same gross sales information on your state return, but the calculation of taxable gain may differ.
A Practical Checklist for Tax Season
Navigating stock sales at tax time is easier with organized records. Use this checklist to ensure you have what you need.
Gather Your Documents:
- Form 1099-B from every brokerage where you had a sale.
- Form 1099-DIV for any dividends (as reinvested dividends affect basis).
- Brokerage annual statements for cross-referencing.
- Records of any stock transactions not handled by a broker (e.g., private sales, exercise of stock options).
Review Your 1099-B Carefully:
- Verify your name and Social Security Number.
- Check that each transaction listed is accurate.
- See if the form includes cost basis (Box 1e) and whether it was reported to the IRS (Box 13).
- Note: If basis isn't reported to the IRS, you are still responsible for reporting it correctly.
Prepare Before Filing:
- Separate your transactions into short-term and long-term piles mentally or on a spreadsheet.
- Calculate your total proceeds, basis, and gain/loss for each category.
- Identify any potential wash sales.
- Decide if you need to carry a loss forward from a prior year (you should have records of this from last year's Schedule D).
When Entering Data in Tax Software or Giving to a Preparer:
- Have all documents on hand.
- Enter data carefully from each 1099-B. The software will usually generate Form 8949 and Schedule D automatically.
- Double-check that the final numbers on Schedule D make sense based on your calculations.
When to Consider Getting Professional Tax Help
While many investors can handle reporting stock sales with good tax software, certain situations warrant consulting a qualified tax professional, such as an Enrolled Agent (EA), Certified Public Accountant (CPA), or tax attorney.
Consider professional help if:
- You have a high volume of complex transactions (e.g., frequent trading, options, futures).
- You've dealt with inherited securities, gifted stock, or securities held in a trust.
- You have exercised incentive stock options (ISOs) or dealt with employee stock purchase plans (ESPPs).
- You are harvesting significant losses and want to navigate the wash sale rule strategically.
- You have investments in partnerships (K-1 forms) or foreign investments.
- You receive an IRS notice questioning your reported capital gains or cost basis.
- Your tax situation is already complex due to business ownership, multiple state residencies, or high net worth.
A professional can help ensure you are applying basis rules correctly, maximizing loss benefits, and filing accurately to avoid audits or penalties.
Common Pitfalls to Avoid
- Ignoring Cost Basis: Assuming your brokerage has perfect records for old shares. For assets acquired before basis reporting was mandatory (2011 for stocks, later for other assets), you are solely responsible for proving your basis. Dig up old statements.
- Missing the One-Year Mark by Days: Selling a stock 364 days after buying it turns a potential 15% tax into a 22%, 24%, or higher tax. Mark your calendar.
- Forgetting About State Tax: A significant tax bill at the state level can be an unpleasant surprise.
- Poor Recordkeeping: Without clear records of purchases, reinvestments, and splits, calculating accurate gain or loss is impossible. Start a filing system for annual statements and trade confirmations.
- Misunderstanding the Wash Sale Rule: Trying to claim a loss while quickly repurchasing the same stock can lead to disallowed losses and added complexity.
Understanding the difference between long-term and short-term capital gains is fundamental for managing your investment tax liability. By knowing the rules, keeping meticulous records of your cost basis, and planning the timing of your sales, you can make more informed decisions that keep more of your investment returns in your pocket.
Always remember that tax rules can change, and your eligibility for certain rates depends on your overall financial situation. This information is a general guide. For personalized advice tailored to your specific transactions and tax picture, consult a qualified tax professional or refer to the official resources at IRS.gov, particularly Topic No. 409, Capital Gains and Losses, and the instructions for Form 8949 and Schedule D.

About the TDL Expert Panel
TDL Expert Panel · TheDigitalLife Editorial Team
TDL Expert Panel is the editorial team behind TheDigitalLife. The team researches, reviews, and creates practical guides to help everyday readers make better decisions about home repair costs, refunds, AI tools, digital safety, productivity, and useful online resources. Each guide is written to be clear, useful, and easy to understand.
