ToolsConductScience tool
% Time in LightFree in-browser calculator

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.

PrivateData stays in your browser
LiveNo sign-up required
Open methodFormula shown on this page
CitableMethods and citation included

Calculator

Results update in place

Try it out

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

Add Animal

When to use

  • 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

Do not 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

Verify light intensity with a lux meter

The light/dark box test depends on a sufficient lux differential between compartments. If the light side is too dim (< 200 lux) or the dark side too bright (> 100 lux), the test loses sensitivity. Measure lux at floor level in both compartments at the start of each testing day and report the values in your methods.

Report transitions alongside % time in light

A drug that reduces both transitions AND % time in light is likely causing sedation, not increasing anxiety. A true anxiogenic effect should decrease % time in light while maintaining or increasing transitions. Always report both metrics to disambiguate anxiety from locomotor effects.

Use a single session per animal

The light/dark box test relies on novelty-driven exploration. Repeated exposure habituates the animal to the apparatus, reducing both the anxiety response and the sensitivity to drug effects. Each animal should be tested only once. If longitudinal testing is required, consider extending the inter-test interval to at least 1-2 weeks.

Control for time of day and circadian phase

Rodents tested during their active (dark) phase show more exploration and different baseline anxiety levels than those tested during the light phase. Counterbalance testing order across treatment groups and restrict testing to a consistent 2-3 hour window each day.

Clean the apparatus between animals

Residual olfactory cues (urine, feces, alarm pheromones) from a previous animal can dramatically alter the behavior of the next animal. Clean both compartments thoroughly with 70% ethanol and allow to dry between animals. Use consistent cleaning agents across the entire study.

1

Method

Percent time in light equals time in light compartment divided by total session time, multiplied by 100. Transition frequency is the raw count of crossings between compartments. Latency to first enter light is recorded in seconds from session start. Group statistics use sample standard deviation (n-1 denominator) for SEM calculation. All computation is client-side — no data leaves your browser.

2

Published

Published 2026-04-05. Calculations support planning and documentation; verify procurement decisions against manufacturer specifications or institutional SOPs.

3

How to cite

How to Cite

ConductScience Light/Dark Box Test Calculator. ConductScience, Inc. 2026. Available at: https://conductscience.com/tools/light-dark-box-test-calculator

This tool performs mathematical calculations on user-provided data. It does not replace scientific judgment regarding experimental design, exclusion criteria, or statistical analysis.

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

What is the light/dark box test and what does it measure?
The light/dark box (also called light-dark exploration test or light-dark transition test) is a widely used anxiety assay for rodents based on the innate conflict between the tendency to explore novel environments and the aversion to brightly lit, open spaces. The apparatus consists of two compartments connected by a doorway: a brightly illuminated open compartment (the light side, typically 300-400 lux) and a smaller, enclosed, dark compartment (the dark side, < 50 lux). Mice or rats are placed in one compartment (usually the light side) and allowed to freely explore both sides for 5-10 minutes. Anxious animals spend more time in the dark compartment and make fewer transitions between sides. The primary dependent variables are % time in light, number of transitions, and latency to first enter the light compartment.
What is the typical session duration and starting position?
Standard protocols use a 5-minute (300-second) session, though 10-minute sessions are also common. The animal is usually placed in the center of the light compartment facing away from the doorway, which allows measurement of initial escape latency. Some protocols start the animal in the dark compartment to measure latency to enter the light side as an index of exploratory drive. Starting position must be consistent within a study and reported in the methods. The first 1-2 minutes often show the most robust group differences, as behavior habituates over time.
What does % time in light indicate?
Percent time in light is the primary anxiety measure. Animals with higher anxiety spend less time in the illuminated compartment, preferring the safety of the dark side. Anxiolytic drugs (e.g., benzodiazepines like diazepam, chlordiazepoxide) reliably increase % time in light, while anxiogenic treatments decrease it. Typical baseline values for C57BL/6 mice are 25-35% of time in light during a 5-minute session. Values below 20% suggest high anxiety or neophobia; values above 50% may indicate reduced anxiety, impaired dark-preference, or photosensitivity issues.
What do transitions between compartments mean?
Transitions (the number of crossings between light and dark compartments) serve a dual purpose. First, transitions index general locomotor activity and exploratory drive — animals that are sedated or hypoactive will show fewer transitions independent of anxiety. Second, transitions are themselves sensitive to anxiety: anxiolytic drugs increase transition frequency. Critically, if a drug reduces transitions without changing % time in light, the effect is likely locomotor rather than anxiolytic. Reporting both metrics together allows dissociation of anxiety-specific effects from general locomotor changes.
What is latency to first enter light and when is it informative?
Latency to first enter the light compartment is measured when the animal starts in the dark side. It reflects the conflict between exploratory motivation and light aversion. Shorter latencies indicate less anxiety or greater exploratory drive. This metric is most informative in protocols where the animal starts in the dark compartment. When the animal starts in the light compartment, the analogous measure is latency to first enter the dark side (escape latency), which reflects the initial aversion to the lit environment. If the animal never enters the target compartment during the session, latency is typically scored as the full session duration.
How does the light/dark box differ from the elevated plus maze?
Both tests measure anxiety-like behavior based on approach-avoidance conflict, but they exploit different aversive stimuli. The light/dark box uses photophobia (aversion to bright light) as the anxiogenic stimulus, while the elevated plus maze (EPM) uses open elevated spaces (fear of height and open space). The two tests often show convergent results with anxiolytic drugs, but can dissociate: some manipulations affect one test but not the other, suggesting partially distinct neural substrates. The light/dark box is simpler to set up, requires less habituation, and is particularly sensitive to benzodiazepine-like anxiolytics. The EPM provides additional measures like head dips and stretch-attend postures.
What factors affect light/dark box results?
Key variables include: (1) Light intensity — the lux differential between compartments must be sufficient (light side 300-400 lux, dark side < 50 lux); inadequate contrast reduces test sensitivity. (2) Compartment size ratio — typically 2:1 or 1:1 (light:dark); the light side is usually larger. (3) Doorway size — smaller openings increase approach-avoidance conflict. (4) Time of testing — rodents are more active during their dark cycle; testing during the light phase when animals are naturally less active can reduce sensitivity. (5) Prior handling and habituation — reduces baseline anxiety. (6) Strain — C57BL/6 mice show moderate baseline anxiety; BALB/c mice show higher anxiety. (7) Age and sex — juvenile mice and females may show different baseline profiles.
325
Free tools
1,200+
Institutions
100%
Client-side
0
Uploads required