You need to supply more details regarding this transaction.
Generally, the beneficiaries (those who inherit the property) receive a stepped-up basis in the property inherited to the fair market value on the date of death of the decedent. As a result, if the property is sold shortly after it is inherited there is typically little gain, if any, and a loss could even result depending upon the circumstances.