Capitol gains/loses

I’ve read some of the posts on this, but im confused still.

father in law passed away jan 2024, the estate is in probate, there are 2 beneficiaries. The property sold January 2025. Probate will not settle until next year due to a legal matter. When do we file for gains or losses? Probate court valued at more then what it was sold for and it appraised for.