Testosterone

The HPG axis explained: How your brain controls testosterone

The HPG axis explained: how the hypothalamus, pituitary and testes work together, what LH and FSH reveal, and why outside testosterone halts sperm production.

Moderate evidenceUpdated 7 min readMedical review pending
Doctor showing an older male patient brain scan images on a tablet
Photo: Vitaly Gariev / Unsplash

In short

The HPG axis is the hormone system that controls testosterone. The hypothalamus in the brain sends GnRH to the pituitary gland, which responds with LH and FSH. LH makes the testes produce testosterone, while FSH and testosterone inside the testes drive sperm production. When testosterone rises, the brain applies the brakes. That is why testosterone from outside the body suppresses both natural production and sperm production.

Key takeaways

  • The HPG axis is made up of the hypothalamus, the pituitary gland and the testes, which control each other through hormone signals.
  • LH makes the Leydig cells in the testes produce testosterone, while FSH together with testosterone drives sperm production.
  • Negative feedback means that high testosterone dampens GnRH, LH and FSH, keeping levels within a normal range.
  • Testosterone from outside the body suppresses LH and FSH and can stop sperm production – it has been tested as a male contraceptive.
  • LH and FSH show whether the problem lies in the testes (primary hypogonadism) or in the brain (secondary hypogonadism).

The HPG axis is the body's control system for testosterone. The hypothalamus in the brain signals to the pituitary gland, which in turn signals to the testes. When testosterone rises, the brain dials the signals down – much like a thermostat1.

Once you understand the HPG axis, it becomes easier to see why doctors measure LH and FSH and not just testosterone, and why testosterone from outside the body can shut down sperm production.

What is the HPG axis?

HPG stands for hypothalamus–pituitary–gonads. The gonads are the sex glands – in men, the testes. The three parts communicate through hormones1:

  • The hypothalamus is a small area at the base of the brain. It releases GnRH (gonadotropin-releasing hormone) in short pulses.
  • The pituitary gland sits just below the brain. It responds to GnRH by producing LH (luteinizing hormone) and FSH (follicle-stimulating hormone).
  • The testes have two jobs: the Leydig cells make testosterone when signaled by LH, and the Sertoli cells support sperm production under the influence of FSH and testosterone.

This is also the axis that starts puberty. When the hypothalamus begins releasing GnRH in pulses, testosterone and sperm production get going and a boy's body begins to change1.

The HPG axisThe brain controls the testes via GnRH, LH and FSH. Testosterone brakes the signals in return.HypothalamusGnRHPituitary glandLH + FSHTestesTestosteroneSperm productionNegativefeedbackTestosterone from outside sends a stronger brake signal: LH and FSH fall,and the testes' own production – including sperm – can stop.
The brain controls the testes via GnRH, LH and FSH. Testosterone brakes the signals in return.
Part Hormone What it does
Hypothalamus GnRH Signals to the pituitary in pulses
Pituitary gland LH Makes the Leydig cells in the testes produce testosterone
Pituitary gland FSH Stimulates the Sertoli cells, which support sperm production
Testes Testosterone Acts throughout the body and brakes the hypothalamus and pituitary
Testes Inhibin B Brakes FSH in particular

The table is based on a major review of hypogonadism1. One key point: sperm production needs a testosterone level inside the testes that is much higher than in the blood. That is the key to understanding why testosterone from outside the body can impair fertility2.

How does the feedback loop work?

The HPG axis runs on negative feedback. When testosterone – and the estradiol made from it – rises, the hypothalamus and pituitary reduce their output of GnRH, LH and FSH. When testosterone falls, they turn the signals back up1. The result is that levels stay within a normal range, the way a thermostat keeps a room at a set temperature.

The axis also has a daily rhythm. Testosterone is highest in the morning and falls during the day, and the swing is clearest in younger men3. That is why guidelines recommend a morning sample, ideally fasting, and confirming a low value with a repeat test4. Read more about the testosterone blood test and how to prepare.

Why does outside testosterone shut down your own production?

The brain cannot tell testosterone from the testes apart from testosterone from a gel, an injection or a doping product. It only sees that the level is high, and it brakes. This is what happens2:

  1. The hypothalamus and pituitary turn down GnRH, LH and FSH.
  2. Without LH, the Leydig cells make less testosterone, and the level inside the testes falls sharply.
  3. Without FSH and high local testosterone, sperm production falls – in many cases close to zero.
  4. The testes can shrink, because they are no longer stimulated by LH and FSH.

The effect is so clear that testosterone has been tested as a male contraceptive. In a 1990 World Health Organization (WHO) study, testosterone made sperm disappear from the semen of many healthy men5. When treatment stops, sperm production usually returns, but it can take months to years6.

This also applies to testosterone prescribed by a doctor. That is why fertility should always be discussed before starting, and treatment should be followed up with regular blood tests4.

The same happens with anabolic steroid use, often on a larger scale. After use stops, the axis can take a long time to restart. A Danish study found that former users had lower testosterone and more symptoms of hormone deficiency years after they had stopped7. Steroid use also carries a range of other health risks8. If you have used steroids, your GP can help, in confidence. Read about hormone recovery after steroid use.

Primary vs secondary hypogonadism: what do LH and FSH show?

Because the parts of the axis affect each other, LH and FSH can reveal where a problem lies. The Endocrine Society recommends measuring LH and FSH in men with confirmed low testosterone precisely to tell primary from secondary hypogonadism4.

Pattern Testosterone LH and FSH Where is the problem?
Normal axis Normal Normal –
Primary hypogonadism Low High The testes do not respond, so the brain shouts louder
Secondary hypogonadism Low Low or “normal” – too low for the situation The hypothalamus or pituitary sends signals that are too weak
Outside testosterone or steroids Depends on what is taken Low The axis is braked from outside

When low testosterone comes with low or normal LH, the American Urological Association (AUA) also recommends measuring prolactin – a pituitary hormone that can brake the axis when it is raised9. Read more about prolactin, cortisol and growth hormone.

What can disrupt the HPG axis?

The axis can fail at any of its three levels, or be braked by factors outside it14:

  • The testes can be damaged by congenital conditions such as Klinefelter syndrome, or by injury, infection, chemotherapy or radiotherapy. The pattern is then primary.
  • The pituitary gland can be affected by tumors, usually benign, or by too much prolactin. The pattern is then secondary.
  • The hypothalamus can, in rare cases, lack the ability to release GnRH from birth, as in Kallmann syndrome, where the sense of smell is also reduced or absent.
  • Factors outside the axis – obesity, serious or chronic illness, and medicines such as opioids and glucocorticoids – often dampen the brain's signals104.

Many cases of low testosterone in adult men belong to the last group. This is called functional hypogonadism; it usually produces a secondary pattern and can often improve when the cause is treated10. Read why the difference between primary and secondary hypogonadism matters for treatment and fertility.

Common misconceptions about the HPG axis

  • “High testosterone means the testes are working well.” Not if the testosterone comes from outside. Then LH and FSH are low and the testes' own production is suppressed2.
  • “Sperm production always bounces back quickly.” It usually returns, but it can take months to years6.
  • “Low testosterone means the testes are damaged.” Often the problem lies in the brain's signals, and then the condition is reversible in many cases10.
  • “Estradiol is a female hormone that should be kept down.” Estradiol made from testosterone is part of the axis's braking system and is important for, among other things, bone health in men1.

What does this mean for you?

If your doctor investigates low testosterone, you will often have LH and FSH measured as well as testosterone, and sometimes prolactin. Samples are taken in the morning, and a low value is repeated. Tell your doctor about every medicine you take and whether you have used testosterone or anabolic steroids – it changes how the results should be read. If you want children now or later, the fertility planning checklist can help you prepare for the conversation.

Good questions to bring to your doctor:

  • Does the problem lie in the testes, in the brain or in something outside the axis?
  • Can the cause be treated, and could testosterone then return to normal?
  • What do the findings, and any treatment, mean for my fertility?
  • Which tests should be repeated, and when?

The doctor visit question builder lets you make your own list.

Frequently asked questions

What does HPG stand for?
HPG stands for hypothalamus–pituitary–gonads. The gonads are the sex glands, which in men are the testes. The three parts control each other through hormones: the hypothalamus sends GnRH, the pituitary responds with LH and FSH, and the testes make testosterone and sperm. The system works much like a thermostat that keeps testosterone within a normal range.
What is the difference between LH and FSH?
Both are made in the pituitary gland. LH (luteinizing hormone) makes the Leydig cells in the testes produce testosterone. FSH (follicle-stimulating hormone) acts on the Sertoli cells, which support sperm cells as they mature. Sperm production needs both FSH and a high testosterone level inside the testes. Doctors often measure both when testosterone is low, to find out where in the axis the problem lies.
Why does sperm production stop when you take testosterone?
The brain reads testosterone from outside the body as a sign that there is enough. The hypothalamus and pituitary then turn down GnRH, LH and FSH. Without these signals, the testosterone level inside the testes falls, and sperm production can drop sharply or stop altogether. That is why testosterone has been tested as a male contraceptive, and why it is a poor fit for men who want children.
Does natural production come back after stopping testosterone?
Usually, but it can take time. In studies of hormonal male contraception, sperm production returned in most men after treatment stopped, but recovery could take months to years. After long-term use of anabolic steroids, testosterone can stay low for a long time. Talk to your doctor if you are thinking of stopping, so that you are followed up along the way.
Why is the testosterone test taken in the morning?
Because the HPG axis has a daily rhythm. Testosterone is highest in the morning and lower later in the day, and the swing is clearest in younger men. A sample taken late in the day can therefore give a misleadingly low result. Guidelines recommend a morning sample, ideally fasting, and confirming a low value with a repeat test.

Sources

  1. Salonia A, Rastrelli G, Hackett G, et al.. Paediatric and adult-onset male hypogonadism. Nat Rev Dis Primers 2019.
    ModeratePMID 31147553
  2. Patel AS, Leong JY, Ramos L, et al.. Testosterone Is a Contraceptive and Should Not Be Used in Men Who Desire Fertility. World J Mens Health 2019.
    ModeratePMID 30350483
  3. Brambilla DJ, Matsumoto AM, Araujo AB, et al.. The effect of diurnal variation on clinical measurement of serum testosterone and other sex hormone levels in men. J Clin Endocrinol Metab 2009.
    ModeratePMID 19088162
  4. Bhasin S, Brito JP, Cunningham GR, et al.. Testosterone Therapy in Men With Hypogonadism: An Endocrine Society Clinical Practice Guideline. J Clin Endocrinol Metab 2018.
    StrongPMID 29562364
  5. World Health Organization Task Force on Methods for the Regulation of Male Fertility. Contraceptive efficacy of testosterone-induced azoospermia in normal men. Lancet 1990.
    ModeratePMID 1977002
  6. Liu PY, Swerdloff RS, Christenson PD, et al.. Rate, extent, and modifiers of spermatogenic recovery after hormonal male contraception: an integrated analysis. Lancet 2006.
    ModeratePMID 16650651
  7. Pope HG Jr, Wood RI, Rogol A, et al.. Adverse health consequences of performance-enhancing drugs: an Endocrine Society scientific statement. Endocr Rev 2014.
    ModeratePMID 24423981
  8. Mulhall JP, Trost LW, Brannigan RE, et al.. Evaluation and Management of Testosterone Deficiency: AUA Guideline. J Urol 2018.
    StrongPMID 29601923
Medical review pending
Written and fact-checked by the TRT Norden editorial team against the sources below. A licensed clinician has not yet reviewed this page.
Updated 8 November 2026 · General information, not medical advice. Talk to a doctor about your own situation.

Photos on this page: Vitaly Gariev, Christian Buehner, R.D. Smith, National Cancer Institute / Unsplash