Is my tax based on my equity or my taxable gain?

Is my tax based on my equity or my taxable gain?