Over-the-counter iron pills, along with eating iron-rich foods, may help people with anemia caused by iron deficiency. However, it is important to discuss your recommended intake with a doctor. Sometimes, doctors may recommend a higher dosage for people with an anemia deficiency. Other factors such as age, sex, the severity of the deficiency, and whether or not you're pregnant can affect your recommended dose.