All Resources

Log2 Fold Change Calculator

Free

Paste control and treatment values and get the log2 fold change, linear fold change, and direction of regulation for every gene. Includes a pseudocount option for low counts and CSV export.

Control and treatment values

Drag & drop a file or

CSV, TSV, Excel (.xlsx/.xls) - max 5000 rows

5 rows · label then numeric columns

One value per group runs in single-sample mode. Two or more per group adds a Welch t-test p-value and a Benjamini-Hochberg q-value.

Remaining columns are treatment.

Stabilises low counts.

4 of 5 genes significant at q ≤ 0.05 and |log2 FC| ≥ 1.

Significant
MYC11.7240.0+4.2500.00200.0025yes
EGFR51.7790.0+3.9090.00050.0008yes
TP53105.7478.3+2.1680.00040.0008yes
GAPDH1000.01016.7+0.0240.48000.4800no
BRCA1305.0151.7-1.0030.00020.0008yes
log2 fold change = log₂(treatment mean / control mean). A value of +1 is a doubling, −1 a halving, 0 no change. With replicates the tool adds a Welch t-test p-value and a Benjamini-Hochberg q-value, which is the correct way to call differential expression while controlling the false discovery rate.

Why Expression Change Is Measured on a Log2 Scale

Gene expression change is naturally multiplicative: a gene goes up twofold, fourfold, or tenfold, not by a fixed additive amount. On a raw scale this is awkward, because a doubling (2) and a halving (0.5) sit at very different distances from 1, so up- and down-regulation cannot be compared or plotted symmetrically. Taking the base-2 logarithm fixes this: a doubling becomes +1 and a halving becomes −1, equal magnitudes in opposite directions.

Base 2 is chosen deliberately over natural log or base 10 because each unit is one doubling, which is easy to reason about biologically: a log2 fold change of 3 is an eightfold increase. This is why differential-expression packages such as DESeq2 (Love et al., 2014) and edgeR (Robinson et al., 2010) report effect sizes in log2 fold change, and why it forms the horizontal axis of the volcano plot.

The one hazard is low counts. When a control value is zero or very small, the ratio explodes and the log2 fold change becomes unstable or undefined. Adding a pseudocount to both values, which this calculator supports, tames these ratios, and production pipelines go further with shrinkage estimators that pull noisy low-count fold changes toward zero. That is why fold change should never be read alone.

A fold change tells you the size of a change but not whether it is real. Pairing it with a significance test and multiple-testing correction is essential, which is what the false discovery rate calculator provides, and the volcano plot generator plots both axes at once. For a complete analysis from raw counts to a shrinkage-adjusted, corrected gene list, the bioinformatics analysis service runs the full pipeline.

A Worked Example: Five Genes, One Pseudocount

Take five genes with control and treatment values, using the default pseudocount of 1. The table shows how the log2 scale turns very different raw changes into comparable, signed effect sizes, and how the pseudocount rescues a gene whose control value is zero.

GeneControlTreatmentFold changelog2 FCDirection
TP531204803.98×+1.99up
BRCA13001500.50×−0.99down
EGFR5080015.71×+3.97up
GAPDH100010501.05×+0.07≈ none
MYC0240241×+7.91up

Read the log2 column: TP53's roughly fourfold rise is +2, BRCA1's halving is −1, and the two are equal distances from zero, which is the whole point of the log scale. GAPDH barely moves and lands near zero, the behaviour you expect from a housekeeping gene. MYC has a control value of zero, so its raw ratio would be undefined; the default pseudocount of 1 makes it computable as log2(241 divided by 1). That same pseudocount is why TP53 reads +1.99 rather than an idealized +2.00, a small, deliberate trade for stability at low counts.

Common Mistakes With Fold Change

  • Confusing fold change with log2 fold change. A twofold change is a log2 fold change of 1, not 2, and a fourfold change is 2. Reporting the linear ratio where a log2 value is expected, or the reverse, misstates the effect by a power of two.
  • Dividing by zero at low counts. A control value of zero makes the ratio undefined and the log infinite. Add a pseudocount to both values, and treat the resulting large fold changes on near-zero genes with caution rather than as real biology.
  • Computing fold change on un-normalized counts. Raw read counts differ by library size between samples, so a fold change on raw counts can reflect sequencing depth rather than expression. Normalize first, for example to CPM or TPM with the RNA-seq normalization calculator, then take the ratio.
  • Ranking by fold change alone. Low-count genes produce the largest and least reliable fold changes. Always pair the effect size with a corrected significance value; a large fold change with a non-significant adjusted p-value is usually noise.
  • Flipping the ratio direction. Log2 fold change is log2(treatment divided by control). Swapping the two inverts the sign, turning every up-regulated gene into a down-regulated one. Fix the numerator and denominator convention before interpreting direction.

How to Use This Calculator

1

Paste your data

One row per gene with a label, the control value, and the treatment value.

2

Set a pseudocount

Add a small pseudocount to both values to keep ratios stable at low or zero counts.

3

Read the fold changes

Get log2 fold change, linear fold change, and the direction of regulation for each gene.

4

Export the table

Export as a CSV to feed a volcano plot or a supplementary results table.

Next step

Want a PhD to run the whole workup?

Normalization, differential-expression statistics, and figures with a reproducible methods section, handled by a PhD statistician.

Our promise: Free pipeline re-run and figure revisions if reviewers push back.

Quote within a few hoursPay only after you approve your quotePhD methodologistReproducible Bioconda or Nextflow pipelinesNDA available on request

Timeline

Most projects deliver in under 2 weeks. We confirm an exact date in your quote.

If reviewers push back

If reviewers question the pipeline, parameters, or figures, we re-run the analysis and revise free.

Confidentiality

NDA available on request before any project discussion. Your data, study design, and manuscript stay private either way.

Want a PhD methodologist to handle the whole project?

Get a complete differential-expression workup with normalization, statistics, and figures by a PhD statistician. Free pipeline re-run and figure revisions if reviewers push back. Pay only after you approve your quote.

Frequently Asked Questions

What is log2 fold change?

Log2 fold change is the base-2 logarithm of the ratio between a treatment value and a control value, log2(treatment / control). It expresses how much a gene's expression changed between two conditions on a symmetric scale: a log2 fold change of +1 means the expression doubled, −1 means it halved, and 0 means no change. It is the standard effect-size measure in differential gene expression analysis.

How to do log 2 fold change?

Divide the treatment value by the control value to get the fold change, then take the base-2 logarithm. For a gene expressed at 480 in treatment and 120 in control, the fold change is 4 and the log2 fold change is 2. To avoid dividing by zero when a value is very small or zero, a small pseudocount is added to both values first, which this calculator lets you set. Paste a whole table of genes and it computes the column for every row at once.

How to calculate log2 fold change in Excel?

Excel has no LOG2 function, but its LOG function takes a base as the second argument, so the formula is =LOG(treatment/control, 2). If the treatment value is in cell B2 and the control in A2, enter =LOG(B2/A2, 2) and fill down the column. To guard against zero denominators, add a pseudocount inside the ratio, for example =LOG((B2+1)/(A2+1), 2). This calculator does the same arithmetic for an entire pasted or imported table without writing a formula.

What does a log2 fold change of 1 mean?

A log2 fold change of 1 means the gene is expressed twice as highly in the treatment condition as in the control, a doubling. A value of 2 is a fourfold increase, and 3 is an eightfold increase, because each unit on the log2 scale corresponds to another doubling. Negative values mirror this: −1 is a halving and −2 is a quarter.

What does a 2.5 fold increase mean?

A 2.5-fold increase means the treatment value is 2.5 times the control value, an increase of 150% over the starting level. On the log2 scale that is log2(2.5), which is about 1.32, so a gene with a 2.5-fold rise sits just above the common absolute log2 fold change threshold of 1. Take care with wording: a 2.5-fold increase is a final value of 2.5 times the original, not 3.5 times, which is a frequent source of confusion when reporting results.

Why use log2 fold change instead of raw fold change?

Raw fold change is asymmetric: a doubling is 2 while a halving is 0.5, so up- and down-regulation are on different scales and are hard to compare or plot. Taking the base-2 logarithm makes them symmetric around zero, so +1 and −1 represent changes of equal magnitude in opposite directions. This symmetry is why log2 fold change is the x-axis of a volcano plot and the effect size reported by tools like DESeq2 and edgeR.

What is a meaningful log2 fold change threshold?

A common threshold is an absolute log2 fold change of 1, corresponding to at least a twofold change, often combined with a false discovery rate cutoff on the p-value. The right threshold depends on the biology and the noise in the data; a subtle but real regulatory change may have a smaller fold change, while noisy low-count genes can show large fold changes that are not significant. Fold change should always be paired with a significance test.

Should I filter by fold change or by p-value?

Both. Fold change measures the size of the effect while the p-value, after multiple-testing correction, measures the confidence that the effect is real. A gene with a large fold change but a non-significant adjusted p-value may be a low-count artefact, and a gene with a tiny fold change but a very small p-value may be real but biologically trivial. Volcano plots exist precisely to show these two axes together.

Related Analysis Tools

To plot fold change against significance, the volcano plot generator draws both axes, and the false discovery rate calculator corrects the p-values. To normalize raw counts before computing fold change, the RNA-seq normalization calculator converts to CPM, FPKM, and TPM. For the full differential-expression analysis, the bioinformatics analysis service delivers publication-ready results.

SM

Reviewed by

Dr. Sarah Mitchell

PhD, Biostatistics & Research Methodology

Dr. Sarah Mitchell holds a PhD in Biostatistics from Johns Hopkins Bloomberg School of Public Health and has over 15 years of experience in systematic review methodology and meta-analysis. She has authored or co-authored 40+ peer-reviewed publications in journals including the Journal of Clinical Epidemiology, BMC Medical Research Methodology, and Research Synthesis Methods. A former Cochrane Review Group statistician and current editorial board member of Systematic Reviews, Dr. Mitchell has supervised 200+ evidence synthesis projects across clinical medicine, public health, and social sciences. She reviews all Research Gold tools to ensure statistical accuracy and compliance with Cochrane Handbook and PRISMA 2020 standards.

The Tool Is Free. The Full Analysis of Your Biological Data? We Handle That.

Our PhD statisticians run the complete pipeline: differential expression with multiple-testing correction, survival modelling, dimensionality reduction, and publication-ready figures with a reproducible methods section. Constant pricing, most projects delivered in under two weeks.

Our promise: Free pipeline re-run and figure revisions if reviewers push back.

4.9 / 5 across 1,194+ projectsQuote within a few hoursReproducible Bioconda or Nextflow pipelinesPhD methodologistPay only after you approve your quoteNDA available on request

You Shape What We Build Next