Supplements
14
 min read

Are Medication Allergies Genetic? UK Guide to Drug Allergy Risk

Written by
Bolt Pharmacy
Published on
3/3/2026

Are medication allergies genetic? This question matters for patient safety and prescribing decisions across the UK. Whilst medication allergies themselves are not directly inherited in a straightforward manner, the underlying predisposition to develop such reactions can have a genetic component. Research has identified specific genetic variations—particularly in the human leukocyte antigen (HLA) system—that increase the likelihood of severe reactions to certain medications. However, for most common drug allergies, including penicillin and NSAIDs, multiple genes interact with environmental factors, making prediction complex. Understanding the genetic links helps clinicians assess individual risk and implement appropriate monitoring.

Summary: Medication allergies are not directly inherited, but genetic predisposition to develop such reactions can run in families, particularly for certain severe drug reactions linked to specific HLA gene variants.

  • Specific HLA gene variants (such as HLA-B*57:01 for abacavir) strongly predict risk of severe reactions to certain medications, and testing is mandatory in the UK before prescribing these drugs.
  • For most common medication allergies, including penicillin and NSAIDs, no single genetic marker reliably predicts risk; multiple genes interact with environmental factors.
  • First-degree relatives of individuals with drug allergies may have modestly increased risk, though family history alone rarely contraindicates medication use.
  • True allergic reactions involve the immune system and differ from common adverse effects like gastrointestinal upset, which do not carry genetic implications.
  • NHS genetic testing is available for high-risk scenarios (abacavir, carbamazepine in certain populations, allopurinol in high-risk groups) but not routinely for most medications.
  • Patients should inform healthcare providers about family history of severe drug reactions, particularly before starting medications linked to known genetic risk factors.

Am I eligible for weight loss injections?

60-second quiz
Eligibility checker

Find out whether you might be eligible!

Answer a few quick questions to see whether you may be suitable for prescription weight loss injections (like Wegovy® or Mounjaro®).

  • No commitment — just a quick suitability check
  • Takes about 1 minute to complete

Medication allergies represent immune-mediated adverse reactions to pharmaceutical agents, ranging from mild skin rashes to life-threatening anaphylaxis. Around 1 in 15 people in the UK report a drug allergy, though many of these labels—particularly for penicillin—are incorrect when formally assessed. The question of whether these reactions run in families has significant implications for patient safety and prescribing practices.

The relationship between genetics and medication allergies is complex and multifaceted. Unlike simple inherited conditions that follow predictable patterns, drug allergy susceptibility involves multiple genetic factors interacting with environmental triggers and previous drug exposures. Research has identified specific genetic variations that increase the likelihood of developing allergic reactions to certain medications, though having these genetic markers does not guarantee an allergic response will occur.

Current evidence suggests that whilst medication allergies themselves are not directly inherited in a straightforward manner, the underlying predisposition to develop such reactions can have a genetic component. This means that individuals with close relatives who have experienced drug allergies may have a slightly increased risk compared to the general population, though the absolute risk remains relatively low for most medications and family history alone rarely constitutes a contraindication.

It is crucial to distinguish between true allergic reactions and other adverse drug effects. Genuine medication allergies involve the immune system and can be immediate (IgE-mediated, occurring within minutes to hours) or delayed (T-cell–mediated, occurring days after exposure). Severe cutaneous adverse reactions (SCAR), including Stevens-Johnson syndrome, toxic epidermal necrolysis, and drug reaction with eosinophilia and systemic symptoms (DRESS), are serious immune-mediated reactions. Non-allergic adverse effects, such as gastrointestinal upset from antibiotics or headaches from certain medications, are far more common but do not carry the same genetic implications. Understanding this distinction helps healthcare professionals assess individual risk and make informed prescribing decisions based on family history and genetic factors, as outlined in NICE guidance on drug allergy (CG183).

How Genetics Influence Drug Allergy Risk

Genetic variations in specific genes can significantly influence how individuals metabolise medications and mount immune responses to pharmaceutical compounds. The human leukocyte antigen (HLA) system, which plays a central role in immune recognition, has emerged as particularly important in determining susceptibility to certain severe drug reactions.

Research has identified strong genetic associations for several clinically significant medication allergies. For example, the HLA-B57:01 allele is strongly linked to abacavir hypersensitivity in patients with HIV, and screening for this allele is mandatory in the UK before prescribing abacavir, as recommended by the British HIV Association (BHIVA) and specified in the medicine's Summary of Product Characteristics (SmPC). HLA-B15:02 increases the risk of Stevens-Johnson syndrome and toxic epidermal necrolysis with carbamazepine, particularly in individuals of Han Chinese or Thai ancestry; testing should be considered in these populations before prescribing carbamazepine. In people of European or Japanese ancestry, HLA-A31:01 is associated with carbamazepine hypersensitivity, though routine screening is not currently recommended in the UK. Similarly, HLA-B58:01 is associated with severe cutaneous reactions to allopurinol, and testing may be considered in high-risk groups, such as people of Han Chinese, Thai, or Korean ancestry, particularly those with chronic kidney disease.

Pharmacogenetic factors involving enzymes responsible for medication metabolism may also play a role in some drug reactions. Genes encoding cytochrome P450 enzymes, such as CYP2D6 and CYP2C9, affect how quickly drugs are broken down in the body. However, the evidence linking poor metaboliser status to immune-mediated allergy risk is limited and drug-specific. For example, in the case of phenytoin, both HLA-B*15:02 and CYP2C9 poor metaboliser status have been associated with increased risk of severe cutaneous reactions, but such clear associations are not established for most medications.

The MHRA and NHS recognise the importance of these genetic factors, and testing for specific HLA alleles is now standard practice before prescribing abacavir. However, for most common drug allergies—such as reactions to penicillin antibiotics or non-steroidal anti-inflammatory drugs (NSAIDs)—there is no single genetic marker that reliably predicts risk. Instead, multiple genes likely contribute small effects that combine with environmental factors, previous drug exposures, and individual immune system characteristics to determine overall susceptibility. Diagnosis of these allergies relies on careful history-taking, skin testing, and, where appropriate, supervised drug challenge rather than genetic testing.

Family History and Medication Allergy Patterns

Family history provides valuable clinical information when assessing medication allergy risk, though the patterns observed are generally more complex than simple inheritance. Studies examining families with multiple members reporting drug allergies have found modest increases in risk among first-degree relatives, suggesting both genetic and potentially shared environmental factors play roles. However, family history alone should not automatically preclude medication use when clinically indicated; instead, it prompts individualised assessment and heightened vigilance.

For penicillin allergies—the most commonly reported medication allergy in the UK—there is no established direct genetic inheritance. Individuals with family members who have experienced penicillin reactions may have a slightly elevated risk compared to those without such family history, though this increase appears small. Importantly, up to 90% of patients reporting penicillin allergy can tolerate the antibiotic safely when properly evaluated through specialist assessment, which may include skin testing and supervised oral challenge. Many penicillin allergy labels can be removed after such evaluation, broadening treatment options and reducing reliance on second-line antibiotics.

Atopic conditions, including asthma, eczema, and hay fever, do show clear familial clustering and genetic components. The relationship between atopy and medication allergy risk is uncertain; whilst atopy may increase the severity of anaphylaxis if it occurs, evidence that atopy predicts drug allergy is limited. Atopy alone should not restrict prescribing but may warrant additional vigilance during treatment.

Clinicians should carefully document family history of medication reactions during consultations, noting the specific drugs involved, the nature and timing of reactions, and whether reactions were confirmed as true allergies. This information helps inform prescribing decisions and risk assessment. According to NICE guidance (CG183), referral to a specialist drug allergy service should be considered for patients with suspected anaphylaxis, severe cutaneous adverse reactions, severe or non-immediate reactions with systemic features, or unclear histories requiring formal testing. Specialist allergy assessment can clarify diagnoses, enable safe de-labelling where appropriate, and provide tailored management plans.

Genetic Testing for Medication Allergies in the UK

Pharmacogenetic testing for medication allergy risk is available through the NHS for specific high-risk scenarios where strong genetic associations have been established. These tests identify genetic variants that substantially increase the likelihood of severe, potentially life-threatening reactions to particular medications.

Current NHS practice includes mandatory HLA-B57:01 testing before initiating abacavir in HIV-positive patients, as recommended by NICE, BHIVA, and specified in the abacavir SmPC. This screening has dramatically reduced abacavir hypersensitivity reactions. For carbamazepine, HLA-B15:02 testing should be considered in individuals of Han Chinese or Thai ancestry before prescribing, as these populations are at higher risk of Stevens-Johnson syndrome and toxic epidermal necrolysis. HLA-A31:01 is associated with carbamazepine hypersensitivity in people of European or Japanese ancestry, but routine screening is not currently recommended in the UK. For allopurinol, HLA-B58:01 testing may be considered in high-risk groups, such as people of Han Chinese, Thai, or Korean ancestry, particularly those with chronic kidney disease, to reduce the risk of severe cutaneous reactions.

For most common medications, including penicillin antibiotics, non-steroidal anti-inflammatory drugs (NSAIDs), and other frequently prescribed agents, genetic testing is not routinely available or clinically indicated. The genetic architecture underlying these allergies is too complex, involving multiple genes with small individual effects, making predictive testing impractical with current technology. Instead, evaluation relies on detailed history, skin testing, and, where appropriate, supervised drug challenge under specialist supervision.

Access to genetic testing in the UK typically occurs through specialist services, including immunology and allergy clinics, HIV services, or clinical genetics departments. Testing is generally reserved for situations where specific genetic markers have demonstrated clinical utility in preventing serious adverse reactions. Patients concerned about medication allergy risk based on family history should discuss this with their GP, who can determine whether specialist referral or genetic testing is appropriate. Private genetic testing services exist but should be approached cautiously, as many lack clinical validation and may provide information of limited practical value for medication allergy prediction. Guidance on testing and prescribing can be found in the British National Formulary (BNF) and relevant medicine SmPCs available via the MHRA/EMC.

When to Inform Your Doctor About Family Drug Allergies

Patients should proactively inform their GP, pharmacist, and other healthcare providers about family history of medication allergies during routine consultations and before starting new medications. Whilst family history does not automatically mean you will experience similar reactions, this information helps clinicians make informed prescribing decisions and implement appropriate monitoring.

Specific situations warrant particular attention to family drug allergy history. If a close relative (parent, sibling, or child) has experienced a severe reaction such as anaphylaxis, Stevens-Johnson syndrome, or toxic epidermal necrolysis to a medication, inform your doctor before that drug or related compounds are prescribed. Similarly, if you are of Han Chinese, Thai, Korean, or other Asian ancestry and a family member has had a severe reaction to carbamazepine or allopurinol, mention this when these medications are being considered, as certain genetic variants are more common in these populations.

Provide detailed information when discussing family medication allergies, including:

  • The specific medication(s) involved

  • The nature of the reaction (rash, breathing difficulties, swelling, etc.)

  • How quickly the reaction occurred after taking the medication

  • Whether the reaction was confirmed by an allergist or through testing

  • Any medications the family member now safely takes

This detail helps distinguish true allergic reactions from other adverse effects and informs risk assessment.

Seek immediate medical attention if you develop signs of a serious allergic reaction after starting a new medication. Call 999 or attend A&E immediately if you experience signs of anaphylaxis, including widespread rash, facial or throat swelling, breathing difficulties, wheezing, tightness in the chest or throat, feeling faint, or collapse. If you have been prescribed an adrenaline auto-injector, use it without delay. For urgent but non-emergency concerns, contact NHS 111 for advice. Contact your GP promptly for less severe but concerning symptoms such as unexplained rash or itching. Your doctor may arrange specialist allergy assessment, adjust your medication, or implement additional monitoring based on your individual and family history.

Maintaining an up-to-date list of your own medication allergies and intolerances, along with relevant family history, ensures this crucial safety information is available to all healthcare providers involved in your care. If you experience a suspected adverse drug reaction, you can report it via the MHRA Yellow Card Scheme at yellowcard.mhra.gov.uk, helping to improve medication safety for everyone.

Frequently Asked Questions

Can I inherit a medication allergy from my parents?

You do not directly inherit specific medication allergies, but you may inherit a genetic predisposition that slightly increases your risk of developing drug allergies. First-degree relatives of people with medication allergies have modestly elevated risk compared to the general population, though the absolute risk remains relatively low for most medications.

Which medication allergies have the strongest genetic links?

Severe reactions to abacavir (linked to HLA-B*57:01), carbamazepine (linked to HLA-B*15:02 in Han Chinese and Thai populations, and HLA-A*31:01 in European and Japanese populations), and allopurinol (linked to HLA-B*58:01 in certain Asian populations) have the strongest genetic associations. The NHS requires or recommends genetic testing before prescribing these medications in high-risk groups.

Should I avoid penicillin if my mum is allergic to it?

No, you should not automatically avoid penicillin based solely on your mother's allergy, as penicillin allergies do not follow simple inheritance patterns. Inform your doctor about the family history so they can assess your individual risk and monitor you appropriately, but up to 90% of reported penicillin allergies are not confirmed when properly tested.

Can I get genetic testing for drug allergies on the NHS?

Yes, but only for specific high-risk scenarios where strong genetic associations exist, such as HLA-B*57:01 testing before starting abacavir or HLA-B*15:02 testing before carbamazepine in certain populations. For most common medications, genetic testing is not available or clinically useful, and allergy assessment relies on history, skin testing, and supervised drug challenges.

What's the difference between a drug allergy and a side effect?

A true drug allergy involves your immune system and can cause reactions ranging from rashes to life-threatening anaphylaxis, whilst side effects (such as nausea or headaches) are common, predictable responses that do not involve immune activation. This distinction matters because only true allergies carry potential genetic implications and require specialist assessment.

When should I tell my doctor about family medication allergies?

You should inform your doctor about family medication allergies during routine consultations and before starting new medications, particularly if a close relative experienced severe reactions like anaphylaxis or Stevens-Johnson syndrome. Provide specific details about the medication involved, the type of reaction, and timing, as this helps your doctor assess risk and make informed prescribing decisions.


Disclaimer & Editorial Standards

The health-related content published on this site is based on credible scientific sources and is periodically reviewed to ensure accuracy and relevance. Although we aim to reflect the most current medical knowledge, the material is meant for general education and awareness only.

The information on this site is not a substitute for professional medical advice. For any health concerns, please speak with a qualified medical professional. By using this information, you acknowledge responsibility for any decisions made and understand we are not liable for any consequences that may result.

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.

Block quote

Ordered list

  1. Item 1
  2. Item 2
  3. Item 3

Unordered list

  • Item A
  • Item B
  • Item C

Text link

Bold text

Emphasis

Superscript

Subscript

Book a discovery call

and discuss your eligibility for the Fella Program

Book your free call