So this is a basic thing I should have figured out before FI/RE, but I was so busy saving, I didn't even think about it...
When you sell shares of an after tax mutual fund (say, of VTSAX) how do you know which shares you are selling and how they impact taxes? For instance, I purchased funds regularly for the last 10 years, and obviously I have made far more gains on those shares than on ones that were purchased more recently, like last summer. So how are the gains determined that I would pay taxes on? I would potentially have a loss on shares purchased last July, so can I avoid taxes on withdrawals all together?
Please help me understand this! Thanks friends!