ESI is calculated on Gross Salary. Gross salary is the total income earned by the employee while working in their job before any deductions are made for health insurance, social security, and state and federal taxes.