How is capital gains tax calculated?

If you are planning to sell that old house your parents left you, you will be taxed.