What Is an Interaction Effect? Definition and Examples

An interaction effect occurs when the impact of one factor on an outcome depends on the level of another factor. In other words, two variables don’t just add their effects together independently; they combine in a way that produces a result you wouldn’t predict from looking at either one alone. This concept shows up across statistics, medicine, genetics, and everyday life, and understanding it is key to interpreting research correctly.

Main Effects vs. Interaction Effects

To understand an interaction effect, you first need to understand what it’s being compared to: a main effect. A main effect is the independent influence of a single variable on an outcome, regardless of what’s happening with other variables in the study. An interaction effect, by contrast, tells you that those variables aren’t truly independent. The influence of one changes depending on the other.

A clinical trial published in the Indian Journal of Psychological Medicine illustrates this clearly. Researchers tested two treatments for depression at the same time: a medication (escitalopram vs. placebo) and a therapy (cognitive behavioral therapy vs. a waitlist). The study found two main effects: the medication worked better than the placebo regardless of therapy, and CBT worked better than the waitlist regardless of medication. So far, each treatment helps on its own.

But the study also found a significant interaction effect. CBT improved outcomes with the medication far more than it improved outcomes with the placebo. The combination of medication plus therapy wasn’t just “medication benefit + therapy benefit” added together. It was something greater. That extra, unexpected boost is the interaction. The extent of improvement with the drug depended on what therapy patients received.

A Simple Way to Think About It

Imagine you’re testing whether caffeine improves focus, and separately whether sleep deprivation hurts focus. You might find that caffeine helps (main effect) and sleep deprivation hurts (main effect). But what if caffeine helps sleep-deprived people a lot more than it helps well-rested people? That difference in caffeine’s effect across sleep conditions is an interaction effect. The two variables are entangled in a way that changes the story.

The key question an interaction answers is: does the effect of variable A change at different levels of variable B? If the answer is yes, you have an interaction. If variable A has the same effect no matter what’s happening with variable B, you don’t.

How Researchers Detect Interactions

The standard tool for detecting interaction effects is a factorial ANOVA (analysis of variance). When a study includes two independent variables, a two-way ANOVA produces three separate results: a main effect for the first variable, a main effect for the second variable, and an interaction effect between the two. Each result gets its own statistical test and p-value, so researchers can determine whether the interaction is statistically significant or just noise in the data.

One important technical detail: the main effects in a factorial ANOVA are calculated after excluding the interaction effect. This means a significant main effect tells you that variable A would still matter even if there were no interaction. The results are designed to be interpretable on their own, not tangled together.

Reading Interaction Plots

Interaction effects are easiest to spot visually. In a standard interaction plot, the outcome is on the vertical axis, levels of one variable are on the horizontal axis, and separate lines represent levels of the second variable. If those lines are parallel, there’s no interaction: the effect of one variable is the same across levels of the other. If the lines are non-parallel, diverging, converging, or crossing, an interaction is likely present. The more dramatically the lines differ in slope, the stronger the interaction.

Ordinal vs. Disordinal Interactions

Not all interactions look the same, and the distinction matters for interpretation. Researchers classify interactions into two main types based on whether the lines in an interaction plot actually cross within the range of observed data.

An ordinal interaction means one group always performs better than the other, but the size of the gap changes. The lines may converge or diverge, but they don’t cross. For example, a medication might help both men and women, but help women more. Women always do better, so the ranking (the “order”) stays the same. The interaction is just about degree.

A disordinal (or crossover) interaction is more dramatic. The lines actually cross, meaning the ranking flips. One group does better under one condition, but the other group does better under the opposite condition. This type of interaction is particularly important because it means a treatment that helps one subgroup could actually be neutral or harmful for another.

In genetics research, this distinction maps onto competing theories of how genes and environments interact. The diathesis-stress model predicts an ordinal interaction: people with a risk gene do worse in bad environments but perform similarly to everyone else in good environments. The differential-susceptibility model predicts a disordinal interaction: people with the same “risk” gene do worse in bad environments but actually do better than others in very good environments. The gene doesn’t code for vulnerability per se. It codes for sensitivity to the environment in both directions.

Interaction Effects in Medicine

Drug interactions are one of the most practical, real-world examples of interaction effects. When two medications are taken together, the combined result is often different from what you’d expect by simply adding their individual effects.

Synergistic interactions amplify effects beyond what either drug would do alone. Common anti-inflammatory painkillers (NSAIDs) taken alongside certain antidepressants (SSRIs) roughly double the risk of gastrointestinal bleeding. The antidepressants impair platelet function through one mechanism while the painkillers inhibit clotting through a separate mechanism, and together the combined effect on bleeding risk is greater than either one individually.

Antagonistic interactions work in the opposite direction: one drug reduces or blocks the effect of another. Ibuprofen, for instance, can physically block aspirin from reaching its target on the clotting enzyme COX-1. If someone is taking low-dose aspirin to protect their heart, adding ibuprofen can undermine that protection. In a controlled study, healthy volunteers taking a blood pressure medication saw their blood pressure rise by 7 to 9 mmHg when a common NSAID was added, because the NSAID counteracted the blood-pressure-lowering mechanism.

These aren’t just statistical curiosities. They directly affect which medications can be safely combined and in what order.

Gene-Environment Interactions

Some of the most important interaction effects in human health involve genes and environmental exposures. Your genetic makeup can change how your body responds to pollutants, stress, diet, or toxins.

Arsenic exposure provides a striking example. Genetic variants near the AS3MT gene on chromosome 10 affect how efficiently your body metabolizes arsenic. People with certain versions of this gene process arsenic poorly, allowing toxic forms to build up. A similarly functioning variant in the FTCD gene may reduce the availability of the chemical groups your body uses to detoxify arsenic. The environmental exposure (arsenic in drinking water) is the same, but the health consequence depends on which genetic hand you were dealt.

Psychosocial stress offers another example. A study of asthmatic children in the Detroit metro area found that psychosocial stressors altered the activity of 169 genes linked to asthma and allergic disease. The researchers concluded that immune system changes may serve as a key bridge between stress and asthma risk. This means the same level of air pollution or allergen exposure could produce different outcomes in children under high versus low psychosocial stress, because stress is modifying gene activity in the immune system.

Why Interaction Effects Matter

Ignoring interaction effects can lead to dangerously incomplete conclusions. If a clinical trial reports only main effects, it might conclude that a drug works on average, missing the fact that it works brilliantly for one subgroup and barely works for another. Or it might conclude a risk factor is moderate overall, obscuring the fact that it’s severe for people with a particular genetic background.

Interaction effects are the statistical foundation for personalized medicine. By identifying which patient characteristics (age, sex, genetics, other medications, lifestyle) interact with treatment efficacy, researchers can move beyond one-size-fits-all recommendations toward predicting which treatment will work best for a specific individual. Every time a doctor adjusts a recommendation based on your particular combination of conditions, they’re implicitly acting on interaction effects, even if they don’t call it that.