Men's Health Watchdog
A blank envelope, an index card and a paper clip
CostUpdated November 14, 2026

Erectile Dysfunction ICD-10 Code (N52.9) and What Insurers Ask For

The ED ICD-10 codes, from N52.9 to N52.31 and F52.21, what each one means, and how the code on a claim shapes whether a plan covers ED pills or treatment.

By Julian Caraulani · Last updated

CostReviewed by Dr. A. Goher, MBBS

Quick answer
The main ICD-10 code for erectile dysfunction (ED) is N52.9, "Male erectile dysfunction, unspecified" (NLM Clinical Tables: ICD-10-CM N52, read 14 November 2026). More specific N52 codes cover ED from blood flow problems, drugs or surgery. The code matters for cost, because some insurers cover ED treatment only under certain codes. Cash prices start at $16 a month online.
Top-rated partner for ED medication
Strut Health
8.8/10Very good
From $16/mo, $48 per 90 days, auto refill
  • FDA-approved and compounded
  • LegitScript seal ID shown
  • 49 states (not AR)

An ICD-10 code is the short label a clinician puts on your chart and on any insurance claim. ICD-10-CM is the US version used for diagnoses. You never need to pick one yourself. But knowing the codes helps you read a claim, an insurer's policy, or a denial letter.

Erectile dysfunction ICD-10 codes, in full

Here is every code in the N52 group, with the official title, read from the National Library of Medicine's ICD-10-CM search on 14 November 2026.

Code Official title In plain words
N52.01 Erectile dysfunction due to arterial insufficiency Not enough blood flow in
N52.02 Corporo-venous occlusive erectile dysfunction Blood leaks out too fast
N52.03 Combined arterial insufficiency and corporo-venous occlusive erectile dysfunction Both of the above
N52.1 Erectile dysfunction due to diseases classified elsewhere Caused by another illness, such as diabetes
N52.2 Drug-induced erectile dysfunction Caused by a medicine
N52.31 Erectile dysfunction following radical prostatectomy After prostate removal surgery
N52.32 Erectile dysfunction following radical cystectomy After bladder removal surgery
N52.33 Erectile dysfunction following urethral surgery After surgery on the urine tube
N52.34 Erectile dysfunction following simple prostatectomy After partial prostate surgery
N52.35 Erectile dysfunction following radiation therapy After radiation
N52.36 Erectile dysfunction following interstitial seed therapy After radioactive seed implants
N52.37 Erectile dysfunction following prostate ablative therapy After prostate heat or freeze treatment
N52.39 Other and unspecified postprocedural erectile dysfunction After another procedure
N52.8 Other male erectile dysfunction Another known cause
N52.9 Male erectile dysfunction, unspecified ED, cause not recorded

Source: NLM Clinical Tables, ICD-10-CM search for N52, read 14 November 2026.

Several N52.3 codes describe ED after prostate surgery or radiation, covered in our ED and prostate cancer guide.

Erectile dysfunction ICD 10: the codes outside N52

Two other codes come up often. When the cause is mental, not physical, the code is F52.21, "Male erectile disorder" (NLM Clinical Tables: F52.21, read 14 November 2026). Aetna's policy labels this code "psychogenic impotence", meaning ED that starts in the mind.

The second is a prostate code. Tadalafil, the drug in Cialis, is also approved for an enlarged prostate. The code for that is N40.1, "Benign prostatic hyperplasia with lower urinary tract symptoms" (NLM Clinical Tables: N40, read 14 November 2026). Lower urinary tract symptoms means trouble peeing, such as a weak stream. A tadalafil fill for this code is a different coverage question from a fill for ED.

Top-rated partner for ED medication
Strut Health
8.8/10Very good
From $16/mo, $48 per 90 days, auto refill
  • FDA-approved and compounded
  • LegitScript seal ID shown
  • 49 states (not AR)

Who keeps the codes, and when they change

The codes are updated each year. CMS, the federal agency that runs Medicare, posts the yearly files. Its ICD-10 page says: "CDC announces new ICD-10-CM codes effective October 1, 2026." (CMS: ICD-10 codes, read 14 November 2026). The N52 codes above are the ones listed in the current search on that date.

Ranked on safety and priceSee every men's health program side by side

What insurers ask for

The code is only the first step. What a plan asks for depends on the type of plan and on what you want covered.

Medicare Part D. Federal law bars Part D from covering drugs "used for the treatment of sexual or erectile dysfunction" (42 U.S.C. 1395w-102, read 14 November 2026). An ED code on a Part D claim for sildenafil will not help. The law looks at what the drug is used for.

Employer and marketplace plans. These are not bound by the Part D rule, so it depends on the plan. Aetna's policy on ED gives a clear example. It says: "Many Aetna pharmacy benefit plans exclude coverage of drugs for lifestyle enhancement or performance." It adds that under these plans, Viagra, Levitra and Cialis "are covered only when required by state regulation or when a plan sponsor has elected an optional rider under the pharmacy plan" (Aetna clinical policy bulletin 0007, read 14 November 2026). A rider is an add-on the employer chooses to buy. Our Aetna ED coverage guide has the rest of that policy.

Medical treatments, not pills. The same Aetna policy lists codes it covers "if selection criteria are met". Among them are "N52.01 - N52.1, N52.31 - N52.39" for ED with a physical cause. It lists F52.21, N52.2 and "N52.8 - N52.9" under codes it does not cover for the treatments in that policy (Aetna clinical policy bulletin 0007). So for things like vacuum pumps or implants, a specific physical-cause code can matter more than N52.9.

Prior authorization, in plain words

Prior authorization (often called prior auth) means the plan must say yes before it pays. For ED drugs, a plan that covers them may ask the prescriber to show:

  • the diagnosis, with its ICD-10 code;
  • that other causes were checked;
  • that a generic was tried first, where the plan has a generic rule;
  • that the number of tablets fits the plan's monthly limit.

Not every plan asks for all of these. Each plan sets its own rules. Your plan's formulary, the list of covered drugs, says which apply. Search it for "sildenafil" and "tadalafil".

When cash beats the code

For most men, the cheapest route skips insurance. Generic sildenafil and tadalafil are cheap with a prescription. Cost Plus Drugs lists generic tadalafil 5 mg tablets at $0.20 each and generic sildenafil 20 mg tablets at $0.22 each, before shipping (read 7 November and 31 October 2026).

Online programs include the visit. The lowest all-in ED plan we track is Strut Health at $16 a month. Most online programs do not take insurance at all, so the code on their chart does not change your price. Our guide to ED medication and insurance covers each type of plan in more detail.

If you do want to use insurance, ask your own doctor to send the prescription to an in-network pharmacy. Then compare the copay with the cash price before you pay.

See ED cost by program for every published price, and our best ED programs for the ranking.

Questions

FAQ

What is the erectile dysfunction ICD-10 code?

The most common code is N52.9, "Male erectile dysfunction, unspecified". It is used when the chart does not record a cause. More specific codes exist: N52.01 to N52.03 for blood flow problems, N52.1 for ED from another illness, N52.2 for ED caused by a medicine, and N52.31 to N52.39 for ED after surgery or radiation.

What is the ICD-10 code for psychogenic erectile dysfunction?

The code for ED with a mental cause is F52.21, "Male erectile disorder". It sits in the mental health chapter, not the N52 group. Aetna's ED policy labels it psychogenic impotence, meaning ED that starts in the mind, such as from stress or anxiety. Some plans treat F codes differently from N codes.

Does the ICD-10 code change whether insurance covers Viagra?

Sometimes, but the plan's rules matter more. Medicare Part D cannot cover drugs used for ED, whatever the code. Many employer plans exclude ED drugs unless the employer added them. Where a plan covers them, the prescriber may need to give the code and pass a prior authorization step first.

What ICD-10 code is used for tadalafil for an enlarged prostate?

Tadalafil for an enlarged prostate with urinary symptoms is usually coded N40.1, "Benign prostatic hyperplasia with lower urinary tract symptoms". That is a separate use on the Cialis label. Whether your plan covers tadalafil under that code is a question for your plan's formulary. Only your prescriber decides which diagnosis fits you.

Do online ED programs use ICD-10 codes?

Their clinicians keep a medical record, which may carry a diagnosis code. But most online ED programs are cash only and do not bill insurance, so the code does not change what you pay. If you want insurance to pay, ask for the prescription to go to an in-network pharmacy.

What is N52.2 drug-induced erectile dysfunction?

N52.2 is the code for ED caused by a medicine. Some blood pressure drugs, antidepressants and other medicines can cause it. Do not stop a medicine on your own because of ED. Ask the prescriber whether a switch is possible, since that can fix the problem without an ED pill. Every ED price, with its source, is on our ED cost page.

Check this page with an AI assistant:ChatGPTPerplexityClaude

Not affiliated with OpenAI, Perplexity or Anthropic.