Calculate log2 Fold Change (log2FC)
Enter expression values for two conditions and optionally add a pseudocount to avoid division-by-zero problems.
What is log2FC?
log2FC means log base 2 fold change. It is one of the most common effect-size measures in RNA-seq, proteomics, metabolomics, and many other high-throughput experiments. It compares the abundance of a feature (gene, transcript, protein, metabolite) between two conditions.
Instead of using raw ratios directly, we use the base-2 logarithm of the ratio. This transforms multiplicative changes into additive units and makes up- and down-regulation symmetrical around zero.
Quick interpretation guide
- log2FC = 0: no change between treatment and control.
- log2FC = +1: 2x higher in treatment.
- log2FC = +2: 4x higher in treatment.
- log2FC = -1: 2x lower in treatment (or 0.5x).
- log2FC = -2: 4x lower in treatment (or 0.25x).
Why use log2 fold change instead of raw fold change?
1) Symmetry around zero
Raw fold changes are asymmetric: going from 1 to 2 is a fold change of 2, but going from 2 to 1 is 0.5. On the log2 scale, these become +1 and -1, which are equally distant from zero and easier to compare.
2) Better visualization
Volcano plots, MA plots, and heatmaps are easier to interpret on a log scale. Extreme values are compressed, making broad patterns more visible.
3) Better statistical modeling
Many downstream methods assume distributions that are closer to normality after logarithmic transformation, especially when dealing with skewed expression values.
How to use this log2FC calculator
- Enter the control value (baseline condition).
- Enter the treatment value (experimental condition).
- Optionally enter a pseudocount if zeros are present.
- Click Calculate log2FC.
The tool returns both the raw fold change and the log2 fold change, along with a short interpretation (upregulated, downregulated, or unchanged).
When should you use a pseudocount?
A pseudocount is useful when one or both values can be zero. Without it, dividing by zero or taking a log of zero is undefined. Adding a small constant stabilizes the computation.
Practical tips
- If both values are comfortably above zero, pseudocount 0 is often fine.
- If sparse data are common, try a small pseudocount like 0.1 or 1.
- Use the same pseudocount consistently across all features.
Common mistakes to avoid
- Mixing up numerator and denominator (treatment vs. control).
- Interpreting tiny log2FC differences without considering variability and p-values.
- Comparing log2FC values derived from differently normalized datasets.
- Using different pseudocount rules across samples or genes.
Example
If control = 20 and treatment = 80:
- Fold change = 80 / 20 = 4
- log2FC = log2(4) = 2
This means the feature is 4-fold upregulated, corresponding to a log2FC of +2.
Final note
log2FC is a simple but powerful metric. Use it alongside significance values (like adjusted p-values), confidence intervals, and biological context for robust conclusions.