Back to IRS

Anna Xian

How do I calculate Applicable Basis for Partial Withdrawal from my Investment?

So I've been trying to figure this out for hours and can't seem to get a straight answer anywhere. I put $100 into an investment a while back and now it's grown to $500 (woo!). But here's my question - if I want to take out $200 now, what's the applicable basis I need to use to figure out the taxes I'll owe on that withdrawal? Like, do I consider a portion of my original investment when calculating the taxable amount, or is the full $200 considered gain? I know it sounds simple but I'm really confused about how the IRS wants me to handle this. I've searched all over tax sites and forums but keep finding contradictory info. Any help on how to properly calculate the basis for a partial withdrawal would save me a lot of headache. Thanks!

The good news is that when you make a partial withdrawal from an investment, you can allocate a portion of your original cost basis to the withdrawal. This effectively reduces the amount of taxable gain. In your example, you invested $100 which grew to $500, so your investment is now worth 5 times your original investment. When you withdraw $200, you can allocate 40% of your original basis ($40) to this withdrawal since $200 is 40% of your total investment value of $500. This means you'll have a taxable gain of $160 ($200 withdrawal minus $40 basis). This is known as the "cost basis allocation method" or "proportional method." After this withdrawal, your remaining investment would be $300 with a remaining basis of $60 for future calculations.

0 coins

Wait, so does this apply to all investment types? Like would it be different if this was from a mutual fund vs individual stocks vs crypto? And do you have to report this on a specific tax form?

0 coins

The proportional method I described applies to most investment types, including mutual funds and individual stocks, but there can be some variations depending on the specific investment. For mutual funds and stocks, this calculation is standard, but you should keep good records of your transactions. For tax reporting, you'll typically use Schedule D and Form 8949 to report capital gains. Your brokerage should provide a 1099-B showing the proceeds from your sale, though you may need to adjust the cost basis if they don't have your complete basis information.

0 coins

I used to struggle with exactly this issue until I found taxr.ai (https://taxr.ai). It completely changed how I handle my investment withdrawals. Last year I had partial withdrawals from multiple investments with different purchase dates and the calculations were making my head spin. Their system analyzed my investment history and automatically calculated the proper basis allocation for each withdrawal. The best part was that it showed me exactly how to optimize the tax impact based on identifying specific shares vs. using the proportional method. I didn't realize that I had options that could significantly change my tax bill.

0 coins

Hmm sounds interesting. Can it handle more complicated situations like wash sales or if you've reinvested dividends over time? My broker's tax documents never seem to get those right.

0 coins

I'm confused about how this works. Do you just upload your statements or what? And does it integrate with tax filing software after figuring out the basis?

0 coins

It definitely handles wash sales and reinvested dividends! That was actually one of my biggest headaches before. The system flags potential wash sales automatically and properly includes reinvested dividends in your cost basis calculations, which saved me from double taxation. For your question about how it works, you can either upload your brokerage statements or connect directly to many brokerages for automatic import. Once it calculates everything, you can export the results in formats compatible with major tax software. I used the TurboTax import feature and it worked perfectly with the Schedule D worksheet.

0 coins

Just wanted to update after trying taxr.ai - it was actually super helpful! I uploaded my last 3 years of brokerage statements and it laid out all my partial withdrawals with the correct basis calculations. The visualization showing which method (FIFO, specific identification, average cost) would give me the lowest tax bill was eye-opening. It showed me that for my particular situation, using specific identification of shares would save me about $340 in taxes compared to the proportional method. Wish I'd known about this for my 2024 taxes!

0 coins

If you're having a hard time getting this basis calculation question resolved, you might want to try calling the IRS directly. I know that sounds like a nightmare, but I used Claimyr (https://claimyr.com) and got through to a real person in about 15 minutes. You can see how it works in this video: https://youtu.be/_kiP6q8DX5c I had a similar question about basis allocation methods last month and was stuck on hold forever trying to reach someone at the IRS. With Claimyr, they called the IRS for me and then connected me once they got a human on the line. The IRS agent I spoke with walked me through the exact calculation for my situation and confirmed I was doing it correctly on my Schedule D.

0 coins

How does this actually work? Seems weird that a service could somehow magically get through the IRS phone queue when everyone else is stuck on hold for hours?

0 coins

Sorry but this sounds like BS. I've been calling the IRS for WEEKS about my missing refund and can't get through. There's no way some service can just skip the line. They probably just put you on hold themselves and charge you for it.

0 coins

It works by using automated technology to handle the hold time for you. They've got a system that navigates the IRS phone tree and waits on hold, then when a real person answers, they call your phone and connect you directly to the agent. They're not skipping any lines - they're just waiting in line for you. Regarding your skepticism, I felt the same way initially. But it's not BS - they don't charge you until they actually connect you with an IRS agent. I was surprised too, but it worked exactly as advertised. They waited on hold for about 87 minutes according to my dashboard, but I only had to be on the phone for the 15 minutes I was actually talking to the IRS agent.

0 coins

I need to eat my words. After my skeptical comment, I decided to try Claimyr anyway since I was desperate about my refund issue. It actually worked exactly as described. I got a call back when they reached a human at the IRS, and the agent was able to look up my tax account. The IRS person explained that my refund was held up because of a mismatch between my reported investment income and what was on my 1099s. We resolved it right on the call. Without exaggerating, this saved me weeks of frustration. And related to the original post, the agent also confirmed the correct way to calculate basis for partial withdrawals - exactly as described in the first comment.

0 coins

Another approach worth considering is specific identification of shares when selling investments. Instead of using the proportional method, you can identify which specific shares you're selling and use their actual cost basis. For example, if you bought shares at different times/prices, you could choose to sell your highest cost basis shares first to minimize the taxable gain. Most brokers allow you to specify which shares you're selling at the time of the transaction.

0 coins

Anna Xian

Author

Thanks for mentioning this! If I wanted to use specific identification, do I need to tell my broker at the time of sale or can I just choose which shares I sold when I file taxes? And does this work for all investment types?

0 coins

You generally need to specify which shares you're selling at the time of the transaction. Most online brokers have an option during the sell order process where you can select "specific lots" or "specific shares" instead of the default method. Once the transaction is complete, it's usually too late to change which specific shares were sold. This works for most stocks, ETFs, and mutual funds, though some mutual funds are restricted to average cost method once you've used it. It typically doesn't apply to certain investments like bonds or options contracts. Check with your specific broker about their lot selection capabilities if you're unsure.

0 coins

Hey for tax questions like this, I usually just use TurboTax. It has a feature that walks you through investment sales and helps calculate the basis. Has anyone tried using that for partial withdrawals?

0 coins

I've used TurboTax for years and their investment section is decent but not great for complex situations. It works well if your 1099-B has complete basis info, but if you need to do manual basis calculations for partial withdrawals, you're still doing the math yourself. I found that having good records before starting tax prep makes all the difference.

0 coins

I think there's another point worth mentioning - the type of account matters a lot here. If this is in a retirement account like an IRA or 401k, the basis calculation works completely differently than in a taxable brokerage account. For traditional retirement accounts, withdrawals are generally taxed as ordinary income regardless of basis.

0 coins

Great point about account types! Just to add some clarity for anyone reading - if this is a Roth IRA, the rules are different too. With Roth accounts, you can withdraw your original contributions (basis) at any time tax-free, but earnings withdrawals before age 59½ may be subject to taxes and penalties. For taxable accounts like the original poster seems to be describing, the proportional method mentioned earlier is typically the default, but as others have noted, you might have options like specific identification that could be more tax-efficient depending on your situation. Keep detailed records of all your transactions including dates, amounts, and any reinvested dividends - this will make basis calculations much easier whether you do them manually or use software to help.

0 coins

One thing I'd add that hasn't been mentioned yet - if you're dealing with partial withdrawals regularly, it might be worth considering tax-loss harvesting strategies alongside your basis calculations. When you're withdrawing from investments that have gains, you could potentially sell other investments at a loss to offset some of the taxable gains. Also, timing can matter. If you've held the investment for less than a year, you'll pay short-term capital gains rates (taxed as ordinary income), but if you've held it for more than a year, you'll get the more favorable long-term capital gains rates. In your example with the $160 taxable gain using the proportional method, this rate difference could be significant depending on your income bracket. Just make sure you don't run into wash sale rules if you're planning to repurchase similar investments within 30 days of selling at a loss.

0 coins

This is really valuable advice about tax-loss harvesting! I hadn't considered the timing aspect with short vs long-term gains. Since I've held my investment for about 18 months, I should qualify for long-term rates which is definitely better for my tax bracket. The wash sale rule is something I need to research more - I didn't realize you couldn't just immediately buy back the same investment after selling at a loss. Do you know if this applies to similar but not identical investments too? Like if I sell one S&P 500 fund at a loss, can I immediately buy a different S&P 500 fund, or would that trigger the wash sale rule? Also, for someone relatively new to this, do you have any recommendations for tracking all these transactions and tax implications? It's getting pretty complex with partial withdrawals, potential loss harvesting, and making sure I'm optimizing for tax efficiency.

0 coins

Great questions! The wash sale rule is definitely tricky. For "substantially identical" securities, the 30-day rule applies, but the IRS hasn't given crystal clear guidance on what counts as substantially identical. Generally, two different S&P 500 funds from different companies would likely be considered substantially identical since they track the same index, so that could trigger the wash sale rule. However, you might be able to switch to a similar but different index - like selling an S&P 500 fund and buying a total stock market fund, or switching from large-cap to broad market exposure. Just be careful and maybe consult with a tax professional for your specific situation. For tracking, I'd really recommend the tools mentioned earlier in this thread - taxr.ai seems to handle a lot of these complexities automatically. But if you want to DIY it, a detailed spreadsheet tracking each lot (purchase date, amount, shares, any corporate actions) plus a separate log of all transactions is essential. Many people underestimate how complex this gets with multiple partial sales over time. The key is starting good record-keeping habits now before it gets overwhelming. Trust me, trying to reconstruct this stuff years later is a nightmare!

0 coins

Great questions about wash sales! The wash sale rule can be tricky with similar investments. Generally, buying a "substantially identical" security triggers the rule, but the IRS hasn't given crystal clear guidance on what counts as substantially identical. Different S&P 500 funds from different companies are usually considered safe (like switching from Vanguard's VOO to State Street's SPY), but it's a gray area. For tracking everything, I'd recommend a few approaches: 1) Keep a detailed spreadsheet with all transactions, dates, and lot information, 2) Consider portfolio tracking software like Personal Capital or Quicken for the big picture, 3) For tax optimization specifically, some people use tools like Wealthfront or Betterment that automate tax-loss harvesting, or the taxr.ai tool that was mentioned earlier for basis calculations. The key is starting simple and building up your tracking system as your investments get more complex. Don't let perfect be the enemy of good - even a basic spreadsheet is better than relying solely on broker statements when tax time comes around.

0 coins

Great questions about wash sale rules! The wash sale rule can be tricky with similar investments. Generally, selling one S&P 500 fund and immediately buying a different S&P 500 fund could potentially trigger the wash sale rule if the IRS considers them "substantially identical." However, there's some gray area here - buying a different index fund that tracks a broader market (like total stock market vs S&P 500) or a different asset class entirely would typically be safe. For tracking, I'd strongly recommend using portfolio management software or even a detailed spreadsheet that tracks: purchase dates, amounts, dividend reinvestments, any corporate actions, and your chosen cost basis method for each holding. Some people use tools like Personal Capital (now Empower) or even just a well-organized Excel sheet. The key is consistency - once you choose a cost basis method for a particular investment, you generally need to stick with it. And definitely consult a tax professional if you're doing significant tax-loss harvesting, as the rules can get complex when you're actively managing multiple positions for tax efficiency.

0 coins

IRS AI

Expert Assistant
Secure