It depends on your status. Students have a grace period of 60 days after their OPT has expired to leave the country, while the grace period for H1-B visa holders is 10 days.

You can find more information here.