One of the most sexually dimorphic aspects of metabolic regulation is the bidirectional modulation of glucose homeostasis by testosterone in male and females. Severe testosterone deficiency predisposes men to type 2 diabetes (T2D), while in contrast, androgen excess predisposes women to hyperglycemia. The role of androgen deficiency and excess in promoting visceral obesity and insulin resistance in men and women respectively is well established. However, although it is established that hyperglycemia requires β cell dysfunction to develop, the role of testosterone in β cell function is less understood. This review discusses recent evidence that the androgen receptor (AR) is present in male and female β cells. In males, testosterone action on AR in β cells enhances glucose-stimulated insulin secretion by potentiating the insulinotropic action of glucagon-like peptide-1. In females, excess testosterone action via AR in β cells promotes insulin hypersecretion leading to oxidative injury, which in turn predisposes to T2D.