The basis is obviously stepped up to the FMV on the date of death, but you should have kept track of the K-1s you got each year. It can get tricky unless it was handled right from the beginning and it's likely that the gain occurred post-death and not part of your inherited basis.