Light/Dark Box Test Calculator

Enter time in light/dark compartments and transitions. Get % time in light, transition frequency, latency to enter light, and group comparisons.

% Time in LightTransitionsCSV Export

Try it out

Load example Light/Dark Box data to see the full workflow

Add Animal

  • Compute % time in light compartment from recorded light and dark side durations
  • Count transitions between compartments as a combined anxiety/locomotor measure
  • Record latency to first enter the light compartment for approach-avoidance analysis
  • Compare treatment groups (e.g., vehicle vs. anxiolytic) with SEM error bars
  • Validate that transition counts dissociate anxiety effects from locomotor effects
  • Export per-animal and group summary data to CSV for further statistical analysis

Don't use for

  • Real-time video tracking or automated zone detection — use ConductVision or dedicated tracking software to score behavior first, then enter results here
  • Elevated plus maze analysis — use the EPM Anxiety Index Calculator instead
  • Open field center/periphery analysis — use the Open Field Test Analyzer instead

What Is the Light/Dark Box Test?

The light/dark box test (also known as the light-dark exploration test) was developed by Crawley and Goodwin (1980) as a simple, ethologically relevant assay for anxiety-like behavior in rodents. The test exploits the natural conflict between a rodent's drive to explore novel environments (neophilia) and its innate aversion to brightly lit, exposed spaces (photophobia). The apparatus consists of two interconnected compartments: one brightly illuminated and open, the other dark and enclosed. The animal is placed in one compartment and allowed to freely explore both sides, typically for 5 minutes. The distribution of time between compartments, the frequency of transitions, and the latency to enter the aversive (light) compartment provide quantitative indices of anxiety-like behavior. The test has been extensively validated pharmacologically: classical anxiolytics like benzodiazepines (diazepam, chlordiazepoxide) reliably increase time in light and transition frequency, while anxiogenic agents (e.g., pentylenetetrazole, yohimbine) produce the opposite pattern. Its simplicity, reproducibility, and clear pharmacological sensitivity have made it one of the three most widely used anxiety tests in preclinical neuroscience, alongside the elevated plus maze and the open field test.

Key Metrics: Time, Transitions, and Latency

The three primary metrics in the light/dark box test each capture a distinct aspect of anxiety-related behavior. Percent time in light is the most widely reported measure — it directly indexes the balance between exploratory drive and light aversion. Anxiolytic drugs increase this value, while anxiogenic manipulations decrease it. Transition frequency (the number of crossings between compartments) serves as both an anxiety measure and a locomotor control. A true anxiolytic effect should increase both % time in light AND transitions, while a purely sedative effect would decrease transitions without increasing light-side time. Latency to first enter the light compartment (when starting in the dark) or to first escape to the dark (when starting in the light) captures the initial behavioral decision under conflict. Some researchers also report distance traveled in each compartment (if using video tracking), rearing frequency, grooming bouts, and time spent in the doorway zone (risk assessment behavior). Group comparisons use mean +/- SEM with appropriate statistical tests (t-test for two groups, one-way ANOVA for multiple groups), with post-hoc corrections when needed.

Experimental Design Considerations

Proper experimental design is critical for reliable light/dark box results. The apparatus should have consistent lighting (measured with a lux meter at the floor of each compartment) across testing days. The light compartment typically uses 300-400 lux from overhead fluorescent or LED lighting, while the dark compartment should be < 50 lux (achieved by an opaque cover or walls). Between animals, both compartments must be thoroughly cleaned with 70% ethanol or a mild detergent to eliminate olfactory cues. Testing order should be counterbalanced across groups to control for circadian effects. Animals should be habituated to the testing room for at least 30 minutes before testing but should NOT be habituated to the apparatus (the test depends on novelty). A single 5-minute session is standard; repeated testing reduces sensitivity because animals habituate to the apparatus. For drug studies, the injection-to-test interval should match the drug's pharmacokinetics (e.g., 30 minutes for IP diazepam). Sample sizes of 8-12 animals per group are typical for detecting moderate anxiolytic effects (Cohen's d ~ 0.8-1.0) with 80% power.

Frequently Asked Questions