(A) Male and female rats showed increased heroin intake across sessions, comparing infusions earned in each session versus session 1. When broken down by sex, both females (B) and males (C) showed discrimination between the active and inactive levers across sessions. (D) The rate of heroin intake increased significantly faster in males than in females. (E) Total number of heroin infusions across all 14 self-administration sessions did not differ as a function of sex. In (A): *p<0.05, **p<0.01, ***p<0.001, ****p<0.0001 compared to session 1. In (C): *p<0.05, **p<0.01 comparing active to inactive lever pressing. In (D): *p<0.05 comparing the slopes of male and female heroin intake fitted curves.