Capital gains taxes are levied on profits from the sale of assets like stocks mutual funds and real estates.What you need to know.