Stock-based compensation is used by companies to reward employees with stock options or equity ownership rights in the company. This helps in aligning the company's interests with that of the employees.
Suppose a company gives its employees the right to buy 2,000 shares of its stock at $20 per share. The options vest over 3 years at 30% per year and the overall term is five years. Irrespective of the stock price, the employee pays $20 per share at the time of buying the stock over the five-year duration.