Caffeine can affect the heart by raising levels of epinephrine, which increases blood pressure, heart contractility, and heart rate. In high doses, caffeine can cause abnormal heart rhythms or palpitations in susceptible individuals. However, for most people caffeine's effects on the heart lessen with regular use as tolerance develops. Moderate caffeine intake through sources like coffee in amounts around 3-6 mg per kg of body weight has been shown to improve exercise performance and endurance without harmful effects. Those with heart conditions should consult a doctor before using caffeine for exercise.