Inherited brokerage account sold after death — report capital gains on 1041 or 1040?
My father passed away in March and left a brokerage account that named his estate as beneficiary. The executor (me) sold the holdings in June to distribute cash to the heirs. The account was retitled in the estate's name before the sale, and the 1099-B came addressed to the estate's EIN, not my SSN. I'm filing both a 1040 for my own return and a 1041 for the estate. My tax software is asking where to report these capital gains and I'm not sure which return they belong on. Someone told me gains realized after death inside an estate account go on the 1041, but another person said I might need to pass them through to the beneficiaries on Schedule K-1. I haven't filed either return yet. Which form gets these gains, and does anything change if the estate distributes all the income to the heirs before the year ends?