There are several causes of heart palpitations: stress or anxiety, caffeine consumption, use of stimulants, thyroid problems, hormonal or electrolyte imbalances, or anemia.