Investors & landlords

So you have to pay capital gains tax on an inherited home not used as an investment if you have a gain (i kept it for 10 months after inheriting it and the Basis when inherited was less than what it sold for) but you can't claim a loss and get a tax credit on the loss?