If you buy shares for Rs 10,000 and sell them for Rs 12,000, your capital gain is Rs 2,000. If you sell for less, it is a capital loss.
Gains are called short term or long term depending on the holding period, and each is taxed under its own rules. You report them when you file your ITR.
Related terms: Holding period, ITR, TDS.