Stable angina occurs when your heart works harder due to exertion or mental or emotional stress. The pain usually goes away with rest because your heart no longer needs as much oxygen.