Capital gains

We had my mother’s house signed over to my brothers and myself  shortly before she died and are selling the house within six months of her death.  The house is empty and no one lived there since her death.  Do we have to pay capital gains based on the amount she paid for the house or based on the fair market value at the time of the transfer to us