Yes, selling stock can count as income for taxes, but only the profit portion does. Whether selling stock counts as income for taxes comes down to a simple calculation: the IRS taxes the gain between what you paid for the shares and what you sold them for, not the full amount your broker deposits. How much you owe depends on how long you held the shares and your total income for the year.
Only the Profit Is Taxable
The taxable amount is the difference between what you received for the shares and what they cost you.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Two numbers matter:
- Cost basis: the original purchase price of the shares plus any fees or commissions you paid to buy them.
- Amount realized: the total sale price minus any fees or commissions charged on the sale.
Subtract the first from the second and you have your gain (or loss). Say you bought 100 shares at $20 each and paid a $10 commission. Your basis is $2,010. You later sell all 100 for $3,500 with a $10 selling commission, so your amount realized is $3,490. Your taxable gain is $1,480. The other $2,010 is just your own money coming back to you.
If you bought the same stock at different times and prices, the shares you identify as sold determine the basis. The default is first-in, first-out, meaning the IRS assumes you sold your oldest shares first. You can also use specific identification and tell your broker which lot to sell before the trade executes.2Internal Revenue Service. Stocks (Options, Splits, Traders) That choice lets you steer the tax result: pick higher-cost shares to shrink the gain, or pick shares held over a year to qualify for the lower long-term rate.
Inherited stock is treated differently. The basis resets to the fair market value on the date of the prior owner’s death, often called a stepped-up basis. If someone bought stock for $10,000 and it was worth $50,000 when they died, your basis starts at $50,000, and selling right away at that price produces no taxable gain.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
How Long You Held the Shares Decides the Rate
Federal law splits stock profits into two buckets based on your holding period. Shares held one year or less produce a short-term capital gain. Shares held more than one year produce a long-term capital gain.3Office of the Law Revision Counsel. 26 USC 1222 – Other Terms Relating to Capital Gains and Losses The holding period starts the day after you buy and includes the day you sell.
Short-term gains are taxed as ordinary income, at the same rates as your wages. For 2026, those rates run from 10% to 37% depending on total taxable income.4Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026 A quick flip stacks on top of your salary and can push some of it into a higher bracket.
Long-term gains get one of three preferential rates. The 2026 income thresholds are:5Internal Revenue Service. 2026 Adjusted Items – Rev. Proc. 2025-32
- 0% on taxable income up to $49,450 (single) or $98,900 (married filing jointly).
- 15% above those figures, up to $545,500 (single) or $613,700 (married filing jointly).
- 20% above the 15% ceiling.
These thresholds look at your total taxable income, not just the gain. A single filer with $40,000 in wages and a $5,000 long-term gain has $45,000 in taxable income before deductions, which likely keeps the whole gain in the 0% bracket.
Losses Can Cancel Out Gains
Selling losers reduces your tax bill. Capital losses first offset capital gains of the same type: short-term against short-term, long-term against long-term. Any leftover loss then offsets the other type. If total losses still exceed total gains after that, you can deduct up to $3,000 of the excess against ordinary income each year ($1,500 if married filing separately).1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Losses beyond that limit carry forward indefinitely to future years.
One trap to avoid: the wash sale rule. If you buy substantially identical stock within 30 days before or after selling at a loss, the IRS disallows the loss on that sale.6Internal Revenue Service. Case Study 1 – Wash Sales The disallowed amount gets added to the basis of the replacement shares, so you eventually recover it, but not this year. Brokers flag wash sales in Box 1g of Form 1099-B.
Ripple Effects on Your AGI
Even when a long-term gain is taxed at 0% or 15%, it still counts toward your adjusted gross income.7Internal Revenue Service. Definition of Adjusted Gross Income A higher AGI can shrink or eliminate income-sensitive tax breaks. The student loan interest deduction phases out completely for single filers with modified AGI above $100,000, and the American Opportunity education credit disappears above $90,000.8Internal Revenue Service. Publication 970 (2025), Tax Benefits for Education
A big gain can also trigger the Net Investment Income Tax, an extra 3.8% on investment income when modified AGI exceeds $200,000 (single) or $250,000 (married filing jointly). The 3.8% applies to the lesser of your net investment income or the amount your modified AGI exceeds the threshold.9Internal Revenue Service. Net Investment Income Tax Those thresholds are not indexed for inflation, so they have held steady since 2013.
Sales Inside Retirement Accounts Are Different
None of the above applies to trades inside a 401(k), traditional IRA, or Roth IRA. Selling stock within those accounts does not trigger capital gains tax at the time of sale, and individual transactions do not go on your return. Withdrawals from a traditional account are later taxed as ordinary income; qualified Roth IRA distributions come out tax-free.10Internal Revenue Service. Roth IRAs
Reporting the Sale on Your Return
Your broker sends Form 1099-B by mid-February listing each sale’s date, proceeds, and cost basis for covered securities. Each transaction goes on Form 8949, showing the purchase date, sale date, proceeds, basis, and gain or loss. The acquisition and sale dates on that form are what establish short-term or long-term treatment.11Internal Revenue Service. 2025 Instructions for Form 8949 – Sales and Other Dispositions of Capital Assets
Totals from Form 8949 roll up to Schedule D, which combines short-term and long-term results into a single figure that flows to your Form 1040.12Internal Revenue Service. 2025 Schedule D (Form 1040) Accuracy counts: the accuracy-related penalty for underreporting income is 20% of the underpayment.13Office of the Law Revision Counsel. 26 USC 6662 – Imposition of Accuracy-Related Penalty on Underpayments
Estimated Payments on a Big Gain
If a sale produces a large gain, waiting until April to settle up can cost you a penalty. The IRS expects estimated payments when you’ll owe $1,000 or more after withholding and credits, and your withholding covers less than 90% of the current year’s tax or 100% of the prior year’s (110% if prior-year AGI exceeded $150,000).14Internal Revenue Service. Large Gains, Lump Sum Distributions, Etc. You can make an increased estimated payment for the quarter the sale falls in, or ask your employer to raise wage withholding for the rest of the year. Publication 505 has the worksheets.
State Taxes Add Another Layer
Federal is not the whole bill. Most states tax capital gains as ordinary income, with rates running from roughly 3% to over 13% depending on the state and your income. A handful of states have no income tax, and a few exempt certain investment income. Check your state’s revenue department for the rate that applies to you.