← All money tools

Stock Sale Tax Estimator

Federal tax on selling stock in 2027: how much you'd owe, how much waiting or selling a loser could change it, and whether a buy-back falls under the wash-sale rule.

Coming back?

1. You

Carried-over losses are on last year's return (the capital loss carryover worksheet with Schedule D). State rate: your state's top rate on your income; no-income-tax states are 0. Find your state's tax website.

2. Your sales

Load sales from your broker's file (CSV or PDF)

🔒 Your file stays on this device. It's read by your own browser and never uploaded, saved or sent: this page is built so it can't send anything over the internet. Account-number columns are ignored. Close or reload the page and it's gone. You can test this: turn off Wi-Fi, then load the file. It still works.

Most brokers let you download a "realized gain/loss" or 1099-B file as CSV from their tax documents page. Statements and tax forms saved as PDF work too, if the PDF has real text (not a scan or photo).

What if I wait?

More tools

Extra tools for bigger questions. Open any of them; they don't change the estimate above.

"Save to my computer" puts a small file of your boxes on your own computer (usually in Downloads). Nothing is sent anywhere. Next time, use "Open my saved file" at the top to pick up where you left off.

Estimate only, for learning. Not tax, legal or investment advice: it shows what the numbers would be, not what to do. Federal tax only: state tax, the alternative minimum tax and special cases (inherited shares, gifts, options) aren't included. State tax is a rough figure: your rate times the profit. Figures: IRS Rev. Proc. 2025-32 (2026) and Rev. Proc. 2026-35 (2027): brackets, capital gains lines, standard deduction. Years the IRS hasn't published yet use the newest figures raised by last year's rise, and are marked as estimates; 3.8% net investment income tax lines from the tax code. Check with a tax professional before acting.

Want to practice? The Stock Sale Taxes Workbook: a 43-page printable, fillable PDF with 5 worked examples and 25 practice problems with a full answer key. $19.99 on Gumroad.