Salary refers to the amount of money an employee is paid on an annual or hourly basis, while total compensation includes all of the monetary and non-monetary benefits an employee receives in addition to their salary, such as bonuses, stock options, health insurance, retirement plans, and other perks.