Back to IRS

Amara Adeyemi

Can you deduct brokerage fees from capital gains on your taxes?

Sold some stocks and ETFs this year after finally moving things around in my brokerage account, and now I'm staring at a pretty significant gain on paper. My broker charged commissions and fees on the transactions, and I'm trying to figure out whether those costs reduce what the IRS considers my capital gain. My accountant is on extended leave and I can't get a straight answer from googling. The fees aren't huge but they're not nothing either — wondering if anyone here has dealt with this when filing or if the IRS has a clear rule about it.

Wages and withholding reported for 2025 were my own headache earlier this fall — I had a discrepancy between what my employer reported and what my W-2 showed, and I needed to know what the IRS actually had on file before I did anything else. Claimyr (claimyr.com) stayed on hold on the IRS line so I ended up talking to a live agent. The representative pulled up the wages and withholding on my account and confirmed the figures the IRS had received from my employer, which told me exactly what I was working with before I filed. Video on reaching a live person at the IRS: https://youtu.be/_kiP6q8DX5c. On your brokerage fees question — that's actually a basis question, not a deduction question. The fees you paid to buy or sell a security get folded into what you paid for it and what you received for it, which changes the size of the gain. Your broker's 1099-B might already reflect some of this. The IRS has a page on investment income and expenses that walks through how basis works; I'd check there and then run the numbers with a tax pro since the specifics of how your broker reports it matter a lot.

0 coins

The 1099-B point is actually really useful — I hadn't looked at whether the cost basis reported there already accounts for the commissions. Going to pull that up tonight.

0 coins

Agreed the basis angle is the right place to look. My broker shows two columns on the 1099-B, one with fees included in basis and one without, and it makes a noticeable difference on the final number.

0 coins

My 1099-B never showed anything about fees separately. Might depend on the broker and what they report to the IRS.

0 coins

The short version is that brokerage fees don't come off the top of your gain like a deduction on a schedule — they adjust the numbers on each side of the transaction. The commission you paid when you bought increases your cost basis, and a commission at the time of sale reduces your proceeds. Both of those shrink the taxable gain, just not through a line labeled 'deduction.' The IRS's instructions for Schedule D and Form 8949 are pretty clear on this, though the form your broker gives you is what you're actually entering. If the basis is already marked 'reported to IRS' on the 1099-B, check whether fees are already in there before adding them again.

0 coins

So I could accidentally double-count them if the broker already included them in the reported basis? That's exactly the kind of mistake I'd make.

0 coins

Yeah the double-count risk is real. The 1099-B has a column that tells you whether the basis reported is the full adjusted basis or just the original purchase price. Worth checking which box is checked before you adjust anything manually.

0 coins

Form 8949 is where this actually plays out — that's where you list each sale with the proceeds and the basis, and there's a column for adjustments. If the basis on the 1099-B is wrong or incomplete, the adjustment column is how you correct it on your return.

0 coins

I went through this exact confusion last spring when I sold some inherited shares. My brain kept wanting to treat the trading fees like a deductible expense the way investment advisory fees used to be, but those miscellaneous itemized deductions went away a few years back. The fees on each trade are really just part of the transaction math — cost basis in, proceeds out, and the fees affect both. I ended up going through the instructions on the IRS's site at https://www.irs.gov/ and cross-checking against the 1099-B my broker sent.

0 coins

The advisory fee deduction going away tripped me up too. People still think they can deduct them and then get confused when the software doesn't put anything on Schedule A for it.

0 coins

Inherited shares add another layer I'm glad I don't have to deal with. My situation is straightforward purchases and sales, which I think makes the basis math cleaner at least.

0 coins

My tax software asked me if I wanted to adjust the basis manually and I had no idea what to say. Ended up just entering what the 1099-B said and hoping it was already adjusted.

0 coins

Form 8949 is the form that actually does the work here, and Schedule D summarizes it. Each sale gets its own line: date acquired, date sold, proceeds, cost basis, and then an adjustment column if the basis the broker reported needs correcting. If your broker already included the buy-side commission in the reported basis and subtracted the sell-side commission from proceeds, you don't touch those columns. If not, you adjust. The IRS's site has a worksheet in the Schedule D instructions that helps you trace which code to use in the adjustment column.

0 coins

The letter codes in that adjustment column always confuse me. There are like eight of them and the instructions are dense.

0 coins

The codes aren't as scary as they look — if the only thing you're correcting is basis that the broker didn't include commissions in, the instructions tell you which one to use. It's mostly the more complicated situations (wash sales, gifted shares) that need the trickier codes.

0 coins

Going to actually read the Schedule D instructions this time instead of just clicking through TurboTax. At least now I know what I'm looking for.

0 coins

Worth knowing that the IRS's position has been consistent here: trading commissions aren't separately deductible but they're also not just ignored — they live inside the basis calculation. The only fees that might have been deductible separately were investment management fees, and those were eliminated as a miscellaneous itemized deduction starting in 2018. So if you read anything online saying you can deduct brokerage fees on Schedule A, that information is out of date.

0 coins

My accountant told me the same thing two years ago and I still see people on other forums saying to put them on Schedule A. The old rule was real, it's just not current anymore.

0 coins

Okay so the Schedule A route is definitely a dead end. Good to know before I went looking for it in the software.

0 coins

There's also a question of what counts as a 'brokerage fee' — some platforms charge annual account fees that are different from per-trade commissions, and those were the kind of fees that used to go on Schedule A. Per-trade commissions always went into basis.

0 coins

Tax year 2024 amended return was sitting in processing limbo when I decided to phone the IRS rather than keep refreshing the amended return tool. Claimyr stayed on the line with the IRS until I was talking to an agent. The representative looked up the return's status on my account and confirmed the date it had been received and that it was still in processing — no additional action needed on my end, just waiting out the timeline. On the original question: the basis adjustment approach is the right one. What helped me understand it was thinking of the commission as part of the total cost to acquire the asset. If you paid $10 and a $1 fee, you spent $11 to own that asset. When you sell, the IRS sees $11 as what it cost you, not $10. Same logic on the sell side — if you got $20 but paid a $1 fee, your proceeds were really $19.

0 coins

That's actually the clearest way anyone has explained the logic. The fee is part of what acquiring or disposing of the asset actually cost me.

0 coins

The $11 example is exactly how I finally got it too. It's not a deduction, it's just accurate accounting of what the transaction actually was.

0 coins

My broker charges a flat monthly fee instead of per-trade commissions. Curious how that fits into the basis calculation, or if it's a different category altogether.

0 coins

Flat monthly fees aren't tied to a specific trade the way a per-transaction commission is, so you can't add them to any particular security's basis. Those were the type that might have gone on Schedule A under the old rules — now they're not deductible at all. A tax professional would be able to say how your specific situation counts.

0 coins

The IRS Online Account at https://www.irs.gov/your-account is worth checking if you want to see your wage and income transcripts — that shows what your broker actually reported to the IRS about your 1099-B for the year. Sometimes seeing what the IRS has on file is a good sanity check against what your brokerage platform shows you. It doesn't answer the fee question directly but it confirms whether the basis your broker reported to them matches what's on your copy.

0 coins

Didn't know you could see 1099-B data there. I've only used the online account to check if anything was owed. Going to log in and look at the wage and income transcript.

0 coins

The wage and income transcript pulled up my 1099-B data last year and it matched what the broker sent me. Useful to have an independent source.

0 coins

Does the transcript show the individual transactions or just the totals? My brokerage account had about 40 sales last year and I'm wondering if the IRS sees all of them.

0 coins

To answer the question above about what the IRS sees — brokers report summary totals in many cases, especially for covered securities with the same holding period. The 1099-B you receive has the detailed breakdown but what goes to the IRS can be in aggregate. This doesn't change how you fill out Form 8949, though. You still list each transaction or use a summary with an attached statement depending on what your broker provides.

0 coins

My broker gives me a statement I can attach instead of entering 40 rows on 8949. Big time saver.

0 coins

The attachment option is real, but check the Form 8949 instructions — the totals from the statement still get entered on the form itself, and the attachment just supports the detail. Some tax software handles this automatically.

0 coins

40 transactions would take me a week to enter manually. Good to know there's an attachment option.

0 coins

Held a stock for seven years before selling this past summer, and the long-term vs. short-term distinction matters a lot for how much of the gain you're actually keeping after taxes. The holding period question is separate from the fee question, but they interact — if the fees shrink your gain from $5,000 to $4,700, that $300 difference is taxed at your capital gains rate, so the actual tax savings from the fee basis adjustment depends on whether you're in long-term or short-term territory. Worth knowing what rate applies to you, which the IRS's site has tables for.

0 coins

I've got a mix — some positions I held over a year and some under. So I'll have both rates in play.

0 coins

Form 8949 has separate sections for long-term and short-term precisely because of this. Each sale goes into the right one based on the holding period.

0 coins

Seven years on a position and then getting the tax bill is still a little shocking even when you know it's coming. The long-term rate helps but it's not nothing.

0 coins

My situation has a wrinkle I haven't seen addressed yet — reinvested dividends. Every time a dividend got reinvested, it bought more shares at a price that includes whatever fee structure existed at the time. Tracking the basis on those lots is a nightmare if you've been holding for years and reinvesting the whole time. The broker calculates it and puts it on the 1099-B but I still don't fully trust the number.

0 coins

Reinvested dividends are covered securities in most cases now, so the broker is required to track and report the basis. That doesn't mean you can't double-check, but the 1099-B should have it.

0 coins

My broker's online history goes back far enough that I could verify each reinvestment lot. Some older brokers lost that history when accounts transferred, which is a bigger headache.

0 coins

If you don't trust the 1099-B number and you have records going back far enough, you can reconstruct the basis yourself and use the adjustment column on Form 8949 to override what the broker reported. A tax professional can help figure out whether that's worth doing in your case.

0 coins

Switching brokers mid-year threw a wrench into my situation — the receiving broker didn't have the original purchase dates or basis from the old account for about half my positions. Had to request a transfer statement from the old broker and manually reconcile. If anyone is thinking about moving accounts, get everything documented before the transfer.

0 coins

Hadn't thought about that scenario. I've been with the same broker for years so at least I don't have that problem.

0 coins

My transfer last year was mostly fine but two positions came over with 'unknown' basis. Those were annoying to fix.

0 coins

Unknown basis means you have to establish it some other way — old statements, trade confirmations, whatever you kept. If you genuinely can't establish it, the IRS says to use zero, which means the whole proceeds are the gain. Worth doing the work to find the records.

0 coins

Had a question about the original post — are the fees you're talking about annual account maintenance fees or per-trade commissions? The answers people are giving mostly apply to per-trade commissions that you can tie to specific transactions. Annual fees are a different animal and the answer there is basically not deductible anymore, full stop.

0 coins

Mine are per-trade commissions, so it sounds like the basis adjustment route is exactly what applies. Good clarification though because I can see how someone would mix those up.

0 coins

The distinction matters a lot and it's not obvious from the outside. Per-trade fees are part of the transaction; annual fees are more like a service charge that doesn't attach to any particular asset.

0 coins

Documentation submitted in response to an IRS notice last October sat unacknowledged for over two months before I could get anyone to tell me whether it had even been received. Claimyr kept the IRS line open and I reached an agent directly. The representative confirmed the reply and the supporting documents were on record as received, which at least meant I wasn't starting over. On the fee question: everything said above about per-trade commissions being part of basis is right, but make sure you're looking at the right column on the 1099-B — brokers show 'cost or other basis' in Box 1e, and whether that figure already includes commissions depends on whether the security is covered or noncovered and how your broker handles reporting. The instructions on the back of the 1099-B your broker sends explain which column reflects what.

0 coins

Box 1e — writing that down. I'll look at whether my broker's reported basis includes the commissions before I try to adjust anything.

0 coins

The covered vs. noncovered distinction trips me up every time. Covered means the broker tracks and reports basis; noncovered means you're on your own for calculating it.

0 coins

Noncovered securities are usually older positions acquired before the reporting rules took effect around 2011 or 2012. Most things bought recently at a standard broker will be covered.

0 coins

My tax software last year kept flagging my 1099-B entries because I had manually added commissions to the basis that the broker had already included. The software couldn't tell, it just showed a mismatch against what the broker reported to the IRS. Ended up having to reconcile line by line. Lesson learned: get clear on whether the 1099-B basis is already adjusted before touching anything.

0 coins

This is exactly the double-count risk someone mentioned earlier. I'm going to verify before I do anything manual.

0 coins

Tax software mismatches like that can sometimes trigger a CP2000 notice later when the IRS compares what you filed to what the broker reported. Best to match the reported figures and use the adjustment column only when you have a real reason to differ.

0 coins

A CP2000 for a basis difference would be stressful. The notice asks you to explain or accept the IRS's proposed change, which isn't hard if you have records but is definitely a hassle.

0 coins

Foreign stock transactions added a layer I wasn't expecting — my broker charged a foreign transaction fee on top of the standard commission when I sold shares on a non-US exchange. Didn't know whether those extra fees counted the same way as a domestic commission for basis purposes. My accountant said yes, they go into the same basis calculation, but I'd recommend confirming with a tax professional if you have that situation because the 1099-B from my broker didn't break them out separately.

0 coins

No foreign transactions for me, but useful to know that gets more complicated.

0 coins

Foreign transactions can also raise questions about foreign tax credits if taxes were withheld by the other country, which is a separate form and a different calculation. Definitely a situation for a professional.

0 coins

Realized reading all of this that I've been entering the proceeds and basis straight from the 1099-B without ever checking whether my per-trade commissions were already in there. Gone back and checked three years of returns in my head and I think my broker includes them, but now I'm not 100% sure. Is there a way to check past returns if I need to file an amended return?

0 coins

An amended return would be Form 1040-X — if you find that you consistently underreported basis because commissions weren't included and you overpaid tax as a result, that's a real option. The IRS says you generally have three years from the original return's due date to claim a refund. Worth running the numbers with a professional to see if the adjustment would be meaningful.

0 coins

You can get your past return data through Get Transcript in the IRS Online Account. The tax return transcript shows the numbers from the original return as filed, and the tax account transcript shows any changes made since. Between those two and your old brokerage statements you should be able to figure out what was reported.

0 coins

Had not even considered that people might have been leaving money on the table for multiple years on this. Good catch.

0 coins

The place to anchor all of this is Schedule D and its instructions — the IRS publishes them every year and they specifically address how to report gains and losses from broker transactions, what to do when the reported basis differs from your records, and how commissions factor into the numbers. The instructions are plain-language enough that you don't need a professional to follow them for a basic situation. Where it gets complicated is wash sales, gifted or inherited shares, or positions that transferred between brokers.

0 coins

Basic situation for me — straightforward purchases and sales at one broker, no gifts or inheritances. So the standard instructions should cover it.

0 coins

Wash sales are the other thing that trips people up. If you sold at a loss and bought back within 30 days on either side, the loss is disallowed and gets added to the basis of the repurchased shares. Brokers are supposed to track this for covered securities but it's worth double-checking if you did any tax-loss harvesting.

0 coins

Came back to add one practical note: if the numbers are substantial enough that an error matters, a one-time session with a CPA or enrolled agent to review your Schedule D before you file is usually worth more than trying to piece it together from forum posts. Not that the information here is wrong — it looks solid — but someone who can look at your actual 1099-B, your records, and your overall return will catch things a thread can't.

0 coins

Agreed. My original accountant will be back in January and I'll have her look at it before I file. At least now I know the right questions to ask.

0 coins

An enrolled agent is a good option too if a CPA is hard to book. They're licensed by the IRS specifically and can handle exactly this kind of question.

0 coins

The IRS's site also has a directory of credentialed tax preparers if you need to find someone — search for 'find a tax pro' on the IRS site.

0 coins

Flagging something that came up in the thread and hasn't been fully corrected: an earlier comment said investment advisory fees 'went away a few years back' as a deduction. To be precise, the Tax Cuts and Jobs Act suspended the miscellaneous itemized deduction category, which included investment advisory fees, starting in 2018. That suspension runs through 2025 under current law. The deduction isn't permanently gone in statute, but as of filing 2025 returns it still doesn't apply. Per-trade commissions, as everyone's said, were never part of that category anyway — they always went into basis.

0 coins

Good precision on that. The 'suspended not eliminated' distinction matters because it could theoretically come back, but for now it's not available and people shouldn't plan around it returning.

0 coins

My accountant told me the same thing — treat it as unavailable now, revisit if the law changes. No point in planning around something that might not come back.

0 coins

Useful clarification. So for 2025 returns specifically, there's no path to deducting advisory fees either — just the basis adjustment for per-trade commissions.

0 coins

Wrapping up my own situation from earlier in this thread: went through my 1099-B and the broker had included the per-trade commissions in the reported basis for all my covered positions. Zero adjustment needed. The only thing I had to do manually was flag one noncovered position where I had to pull the original trade confirmation from 2009 to establish basis. If your positions are all covered and bought recently, your broker has almost certainly already done the work.

0 coins

Mine are all covered securities from the last five years so it sounds like I'm probably in the same situation — broker already handled it. Relieved.

0 coins

Finding a 2009 trade confirmation is heroic. I don't have paperwork going back that far for anything.

0 coins

Pulling records that old from a broker is sometimes possible through their document archive — mine kept ten years of history online. Might be worth checking before assuming the records are gone.

0 coins

IRS AI

Expert Assistant
Secure