To pay federal tax on shares, you report each sale on Form 8949, carry the totals to Schedule D, list your dividends on Schedule B if they exceed $1,500, and pay any balance due by April 15 through IRS Direct Pay, EFTPS, card, or a mailed check with Form 1040-V. Long-term gains on shares held more than a year are taxed at 0%, 15%, or 20% depending on your income; short-term gains and ordinary dividends are taxed at your regular rates, up to 37% for 2026.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses
Figure Out Which Rate Applies
The single biggest variable in your tax bill is how long you held the shares. Sell within a year of buying and the profit is a short-term capital gain, taxed at the same rates as your wages.2Office of the Law Revision Counsel. 26 U.S.C. 1222 – Definitions of Capital Gains and Losses Hold for more than a year and the profit qualifies for long-term rates of 0%, 15%, or 20%, with the applicable rate set by your total taxable income.3Internal Revenue Service. IRS Releases Tax Inflation Adjustments for Tax Year 2026
Dividends split along a similar line. Qualified dividends get the same preferential rates as long-term gains, but only if you held the underlying stock for at least 61 days during the 121-day window that begins 60 days before the ex-dividend date.4Legal Information Institute. 26 U.S.C. 1(h)(11) – Dividends Taxed as Net Capital Gain Everything else is an ordinary dividend, taxed at your regular rate. Your broker’s 1099-DIV separates the two, so you rarely have to calculate the holding period yourself.
The 3.8% Surtax on Higher Earners
If your modified adjusted gross income tops $200,000 single, $250,000 married filing jointly, or $125,000 married filing separately, an additional 3.8% Net Investment Income Tax applies to your capital gains, dividends, and interest.5Office of the Law Revision Counsel. 26 U.S.C. 1411 – Imposition of Tax The 3.8% hits the lesser of your net investment income or the amount by which your MAGI exceeds the threshold. You calculate it on Form 8960 and add it to your regular tax.6Internal Revenue Service. Instructions for Form 8960 These thresholds are not indexed for inflation, so a one-off sale of a large position can push you across the line in a year you’d otherwise stay below it.
Gather Your Records Before You Start
Your broker files Form 1099-B for every sale, showing acquisition date, sale date, cost basis, and gross proceeds.7Internal Revenue Service. About Form 1099-B, Proceeds From Broker and Barter Exchange Transactions Most brokers post it by mid-February. Cross-check it against your own trade confirmations before you use the numbers; cost basis errors are common, especially on shares acquired in batches.
Form 1099-DIV covers your dividend income and separates qualified from ordinary. If you own international stocks or funds, check Box 7 for foreign taxes withheld. Those may be recoverable through the foreign tax credit, which reduces your U.S. tax dollar for dollar rather than merely lowering taxable income.8Internal Revenue Service. Instructions for Form 1099-DIV
Cost Basis: FIFO or Specific Identification
When you’ve bought the same stock at different prices, the IRS default is first-in, first-out: your oldest shares are treated as sold first.9Internal Revenue Service. Publication 551, Basis of Assets Because older shares often have the lowest basis, FIFO can produce the largest taxable gain. Specific identification lets you tell your broker which lot to sell, giving you control over the size of the gain and whether it’s short- or long-term, but you have to identify the shares at or before the sale, not after.
Watch for Wash Sales
Selling shares at a loss and buying substantially identical stock within 30 days before or after the sale triggers the wash sale rule, and the loss is disallowed.10Investor.gov. Wash Sales The disallowed amount is added to the basis of the replacement shares, so the benefit is deferred rather than lost.11Internal Revenue Service. Income – Capital Gain or Loss Workout Brokers usually track wash sales within a single account, but they miss cross-account situations, like buying the same stock in an IRA. That correction falls on you.
Use Losses to Reduce What You Owe
Capital losses offset capital gains dollar for dollar. Short-term losses first cancel short-term gains, long-term losses first cancel long-term gains, and anything left crosses over. If losses still exceed gains, you can deduct up to $3,000 of the excess against ordinary income ($1,500 if married filing separately) and carry the rest forward to future years indefinitely using the Capital Loss Carryover Worksheet in Publication 550 or the Schedule D instructions.1Internal Revenue Service. Topic No. 409, Capital Gains and Losses Carryovers are easy to forget on next year’s return, and forgetting them means paying tax you don’t owe.
Fill Out the Forms
Form 8949
List each sale on Form 8949: description, acquisition date, sale date, proceeds, and cost basis. Column (f) takes an adjustment code (for a wash sale, for example) and column (g) the dollar adjustment; column (h) shows the resulting gain or loss.12Internal Revenue Service. Instructions for Form 8949, Sales and Other Dispositions of Capital Assets There’s a shortcut worth knowing: if your 1099-B shows the basis was reported to the IRS and no adjustments apply, you can skip Form 8949 for those transactions and enter the totals directly on Schedule D.13Internal Revenue Service. Form 8949, Sales and Other Dispositions of Capital Assets
Schedule D
Schedule D consolidates the short-term and long-term totals from Form 8949 and calculates your net result.14Internal Revenue Service. About Form 8949, Sales and Other Dispositions of Capital Assets A net gain flows to line 7 of Form 1040. A net loss goes on the same line but is capped at $3,000 (or $1,500 if married filing separately).15Internal Revenue Service. Schedule D (Form 1040), Capital Gains and Losses
Schedule B
Dividends go on Schedule B if your total ordinary dividends exceed $1,500.16Internal Revenue Service. About Schedule B (Form 1040), Interest and Ordinary Dividends Below that, you report the total directly on Form 1040 and skip Schedule B entirely.
Pay During the Year If You’ll Owe $1,000 or More
Brokerages don’t withhold federal tax from your gains and dividends the way an employer withholds from wages. If you expect to owe $1,000 or more after subtracting withholding and credits, the IRS wants quarterly estimated payments rather than a single April payment.17Internal Revenue Service. 2026 Form 1040-ES, Estimated Tax for Individuals For 2026 income, the quarterly deadlines are April 15, June 15, and September 15 of 2026, plus January 15, 2027. Form 1040-ES walks through the calculation.18Internal Revenue Service. About Form 1040-ES, Estimated Tax for Individuals
You avoid the underpayment penalty if your combined withholding and estimated payments cover at least 90% of the current year’s tax or 100% of the prior year’s tax. If your prior-year adjusted gross income was above $150,000 ($75,000 married filing separately), that 100% threshold rises to 110%.19Office of the Law Revision Counsel. 26 U.S.C. 6654 – Failure by Individual to Pay Estimated Income Tax Hitting one of those safe harbors shields you from the underpayment charge even if you still owe more in April.20Internal Revenue Service. Underpayment of Estimated Tax by Individuals Penalty
A useful workaround if you also draw a paycheck: increase your W-4 withholding to absorb the expected investment tax. The IRS treats withholding as paid evenly across the year regardless of when it was actually deducted, which is often simpler than managing four estimated payment deadlines.
How to Send the Payment
IRS Direct Pay moves money directly from a checking or savings account at no charge.21Internal Revenue Service. Direct Pay With Bank Account The Electronic Federal Tax Payment System (EFTPS) is also free but needs advance enrollment.22Internal Revenue Service. EFTPS, The Electronic Federal Tax Payment System Credit and debit cards work through third-party processors that charge a convenience fee.
Paying by mail means sending a check or money order with Form 1040-V, the payment voucher that helps the IRS match your payment to your return.23Internal Revenue Service. Pay by Check or Money Order Don’t staple the check to anything; leave it loose in the envelope.24Internal Revenue Service. Form 1040-V, Payment Voucher for Individuals Save the electronic confirmation or use certified mail so you have proof of the payment date.
What Happens If You’re Late
Two separate penalties apply, and the filing penalty is much larger. Missing the April filing deadline costs 5% of the unpaid tax for each month or partial month late, capped at 25%.25Internal Revenue Service. Failure to File Penalty The failure-to-pay penalty is 0.5% per month, also capped at 25%.26Internal Revenue Service. Failure to Pay Penalty When both apply in the same month, the filing penalty is reduced by the payment penalty.
If you can’t pay by April, file anyway. Filing on time with a partial payment leaves only the 0.5% monthly charge on the remainder, one-tenth the cost of not filing. Interest accrues on the unpaid balance from the original due date regardless.27Office of the Law Revision Counsel. 26 U.S.C. 6651 – Failure to File Tax Return or to Pay Tax For balances you can’t clear at once, an IRS installment agreement drops the monthly penalty rate to 0.25% while the agreement is active.