Let K be the exercise price and ST the price of the underlying stock at the maturity date.
Call Option Payoff
The payoff of a call option is:
cT={0ST−Kif ST≤KifST>K}
or
cT=max[ST−K,0]
If ST > K, then the call is said to expire in-the-money and the option holder can exercise the right to buy the underlying asset at price K rather than at the current market price ST.
Put Option Payoff
The payoff of a put option is:
pT={K−ST0if ST≤Kif ST>K}
or
pT=max[K−ST,0]
If ST < K, then the put is said to expire in-the-money and the option will be exercised.