< Back to IRS

Madeline Blaze

How to Handle Brokerage Fees in Stock Cost Basis Calculation

I'm trying to figure out how to properly account for brokerage fees when calculating my cost basis for stocks. Here's my situation: Let's say I purchased a stock for $135 and paid a brokerage fee of $12.50 at the time of purchase. I understand this increases my cost basis to $147.50 ($135 + $12.50). But what happens when I sell? If I have another brokerage fee of $12.50 at the time of sale, can I add this to my cost basis as well, making it $160 ($147.50 + $12.50)? Or should I keep my cost basis at $147.50 and handle the selling fee differently? I'm trying to make sure I report everything correctly on my taxes for 2025. Been investing more actively this past year and want to make sure I understand how all these fees impact my tax situation. Really appreciate any guidance on this!

When you purchase a stock, the brokerage fee is indeed added to your cost basis. In your example, buying at $135 with a $12.50 fee gives you a cost basis of $147.50 - you've got that part right. However, when you sell the stock, the brokerage fee on the sale is NOT added to your cost basis. Instead, it reduces your proceeds from the sale. So if you sell the stock for $200 and pay a $12.50 brokerage fee, your net proceeds would be $187.50 ($200 - $12.50). This effectively gives you the same tax benefit as if you could add it to your cost basis, since either way it reduces your capital gain. In this example, your capital gain would be $40 ($187.50 proceeds - $147.50 cost basis) rather than $52.50 ($200 - $147.50). Remember to keep good records of all these transactions and fees, especially if you're becoming a more active investor. It'll make tax time much easier!

0 coins

Thanks for the explanation. Does this also apply to other fees that might show up when I sell stock? My broker sometimes charges a "processing fee" that's separate from the commission. Can I subtract that from my proceeds too?

0 coins

Yes, any fees directly related to the sale transaction can be subtracted from your proceeds. This includes commission fees, processing fees, and any other charges your broker assesses specifically for executing the sale. The key is that the fee must be directly tied to the buying or selling transaction. Regular account maintenance fees or subscription fees for services wouldn't qualify - those might be deductible elsewhere as investment expenses depending on your situation, though tax reform has limited many of those deductions.

0 coins

Just wanted to share that I was struggling with the same question last year and found https://taxr.ai super helpful for these kinds of investment tax questions. I had a bunch of different trades with various fees and wasn't sure how to handle all of it correctly. I uploaded my brokerage statements and it automatically identified all my transaction fees and calculated my correct cost basis. It also explained exactly what I needed to know about handling fees at purchase vs. sale. Really saved me from potentially making costly mistakes on how to report everything.

0 coins

Does it work with all the major brokerages? I've got accounts with both Fidelity and Vanguard and the different formats drive me crazy when trying to figure this stuff out.

0 coins

I'm a bit skeptical about these tax tools. How does it handle wash sales? I got burned last year when my tax software didn't properly identify some wash sales across different accounts.

0 coins

It works with all the major brokerages - I've used it with statements from Schwab, Fidelity, and Robinhood without any issues. The system is designed to read and interpret various statement formats, so you don't have to worry about the differences between your accounts. Regarding wash sales, it actually has specialized detection for this exact issue. It can identify potential wash sales across multiple accounts and statements, which is something many tax software programs miss. It flags these transactions and explains the implications so you can properly report them. This was actually one of the features that saved me from a headache since I had a few wash sales I hadn't even recognized.

0 coins

Just wanted to follow up about my experience with taxr.ai after my skeptical question. I decided to give it a try with my complicated situation involving multiple accounts and several wash sales that happened throughout the year. I was genuinely impressed. The system correctly identified all my wash sales, even ones that happened across different brokerages. It adjusted my cost basis calculations accordingly and gave me a clear report showing exactly how each transaction should be reported. Definitely worth checking out if you're dealing with investment taxes and various fees across multiple accounts or brokerages.

0 coins

If you're having trouble getting answers from the IRS about cost basis questions (and who isn't these days), I found a service called Claimyr that actually helped me get through to a real person at the IRS. Check it out at https://claimyr.com - there's also a video showing how it works: https://youtu.be/_kiP6q8DX5c I had been trying for weeks to get clarification on some cost basis issues for inherited stocks where the original purchase information was unclear. After using Claimyr, I got connected to an IRS agent within about 15 minutes who walked me through the proper way to handle the situation. Way better than the hours I spent on hold previously!

0 coins

How exactly does this work? Does it just keep calling the IRS for you or something? I don't understand how a third-party service can get you through when the IRS lines are constantly busy.

0 coins

Yeah right. I find it hard to believe any service can magically get you through to the IRS when millions of people can't get through. Sounds like a waste of money to me. The IRS is permanently understaffed and no service can fix that.

0 coins

It uses an automated system that navigates the IRS phone tree and waits on hold for you. When someone at the IRS actually picks up, you get a call connecting you directly to the agent. So it's not magic - it's just doing the waiting for you so you don't have to sit there listening to hold music for hours. The service worked exactly as advertised for me. I set it up, went about my day, and about 15 minutes later I got a call connecting me directly to an IRS agent who helped with my cost basis questions. It's especially useful if you need specific guidance that only the IRS can provide about your particular situation.

0 coins

I need to eat some crow here. After my skeptical comment, I was still desperate for help with some complicated wash sale issues from trading options last year, so I tried Claimyr anyway. It actually worked! Got a call back in about 20 minutes connecting me to an IRS agent who specialized in investment income. The agent walked me through exactly how to report my specific transactions. Saved me from potentially making a big mistake on my return. Sometimes being proven wrong is a good thing I guess.

0 coins

A trick I've found useful is using a spreadsheet to track all your trades and associated fees throughout the year. I set up columns for: - Purchase price - Purchase fees (added to cost basis) - Sale price - Sale fees (subtracted from proceeds) - Net gain/loss calculation Makes everything way easier at tax time and prevents mistakes in calculating your gains.

0 coins

Any chance you'd be willing to share a template of your spreadsheet? I've been trying to create something similar but I'm not sure if I'm capturing everything correctly.

0 coins

Happy to explain how I set it up! I have columns for Date of Purchase, Symbol, Quantity, Price per Share, Purchase Commission, Total Cost Basis (calculated), Date of Sale, Sale Price per Share, Sale Commission, Net Proceeds (calculated), and finally Gain/Loss (calculated). For the calculations, Total Cost Basis is (Price per Share × Quantity) + Purchase Commission. Net Proceeds is (Sale Price per Share × Quantity) - Sale Commission. And Gain/Loss is simply Net Proceeds - Total Cost Basis. I also include a column for holding period (short vs long term) that calculates based on purchase and sale dates.

0 coins

Does anyone know if wash sale rules apply to crypto trading? I've been doing some active trading this year on Coinbase and Binance and I'm not sure if I need to track wash sales the same way as with stocks.

0 coins

As of right now, wash sale rules don't apply to cryptocurrency. The IRS classifies crypto as property, not securities, so the wash sale restriction doesn't technically apply. This means you can sell crypto at a loss and immediately rebuy it, and still claim the loss.

0 coins

Great question about handling brokerage fees! I went through this exact same confusion when I first started tracking my cost basis properly. Just to reinforce what Max mentioned - you're absolutely right that purchase fees get added to your cost basis ($135 + $12.50 = $147.50), but selling fees come off your proceeds instead of being added to cost basis. One thing I learned the hard way is to make sure you're tracking ALL fees, not just the obvious commission charges. Some brokers have regulatory fees, exchange fees, or other small charges that can add up over time. These all follow the same rule - purchase-related fees increase your basis, sale-related fees reduce your proceeds. Also, if you're doing more active trading now, definitely keep detailed records throughout the year rather than trying to reconstruct everything at tax time. Your broker's 1099-B should show the fees, but it's good to have your own records as backup, especially if you're trading across multiple platforms. The IRS is pretty clear on this treatment in Publication 550 if you want to read the official guidance, but the way Max explained it is spot on for your situation.

0 coins

Thanks Abby! That's really helpful about tracking ALL the fees, not just the obvious ones. I've been looking at my statements more carefully and you're right - there are little regulatory fees and other charges I wasn't even noticing before. Quick question - when you mention Publication 550, does that also cover how to handle things like dividend reinvestment fees? I have some stocks where I'm automatically reinvesting dividends and there's sometimes a small fee for that service.

0 coins

IRS AI

Expert Assistant
Secure

Powered by Claimyr AI

T
I
+
20,095 users helped today