Systematic review & meta-analysis

Publication Bias Calculator: Trim-and-Fill, Egger, Begg and Contour-Enhanced Funnel Plot

Check your meta-analysis for small-study effects and possible publication bias. Enter the studies and get a contour-enhanced funnel plot, Egger’s regression test (classic and mixed-effects versions), Begg and Mazumdar’s rank correlation test, Duval and Tweedie’s trim-and-fill with the adjusted pooled effect, and Rosenthal’s fail-safe N, with a plain-language interpretation.

✅ No login needed100% freeRuns in your browserYour data stays on your device
Publication Bias Calculator✅ Free · no login📚 Cite this tool
Your data never leaves your PC. Your data is analysed on your own computer or phone, even when you upload a CSV or Excel file. Nothing is uploaded, stored or seen by Codanics, and no login is needed.
  • PriceFree, no login or sign-up needed
  • Your dataProcessed in your browser, never uploaded
  • Works onPhone, tablet or computer, any modern browser
  • Made byDr. Muhammad Aammar Tufail, Codanics
  • Published17 November 2026
  • Last updated16 November 2026

📚 How to cite this tool

This tool is free. If it helped your thesis, paper, report or assignment, please cite it. It keeps the tools free and helps other students find them.

Citation · APA 7th edition

Tufail, M. A. (2026). Publication bias calculator: trim-and-fill, Egger, Begg and contour-enhanced funnel plot [Online tool]. Codanics. Retrieved 16 November 2026, from https://codanics.com/tools/publication-bias-calculator/

In-text citation: (Tufail, 2026) · Narrative: Tufail (2026)

The access date is today’s date, filled in automatically. Author: Muhammad Aammar Tufail. Published 17 November 2026.

🚀 Follow Codanics channel on WhatsApp for more updatesNew free tools, scholarships, PhD positions and research tips, straight to your phone. Free lessons on YouTube too.

How to use the publication bias calculator

  1. Choose the type of data and effect measure and enter one row per study, or paste/upload your data. Load example opens the 13 BCG vaccine trials.
  2. Keep REML unless your main meta-analysis used another estimator; trim-and-fill and the mixed-effects Egger test use the same estimator.
  3. Click Check publication bias. Look at the contour-enhanced funnel plot first: are small studies missing from one side, and would the missing studies have been non-significant?
  4. Read Egger’s and Begg’s tests and the trim-and-fill adjusted estimate. Treat all of them as sensitivity analyses, not proof.
  5. Download the funnel plot (PNG or SVG), copy the results paragraph and export the data with the filled studies.

Publication bias and small-study effects

Studies with significant or exciting results are more likely to be published, published faster and cited more. When a meta-analysis only finds the published studies, the pooled effect can be exaggerated. In a funnel plot each study’s effect is plotted against its standard error; without bias the points form a symmetric funnel around the pooled effect. A gap in one bottom corner, where small non-significant studies should be, suggests small-study effects, of which publication bias is one possible cause.

Methods

Egger (classic) yᵢ/SEᵢ = β₀ + β₁(1/SEᵢ) + εᵢ (OLS); test H₀: β₀ = 0 with t(k − 2) Egger (metafor) yᵢ = β₀ + β₁·SEᵢ + uᵢ + εᵢ (mixed-effects); test H₀: β₁ = 0 with z Begg & Mazumdar Kendall’s τ between (yᵢ − μ̂_FE)/√(vᵢ − 1/Σwᵢ) and vᵢ Trim-and-fill (L0) L0 = [4·S_rank − k(k + 1)] / (2k − 1), iterate, mirror k0 studies around μ̂ Fail-safe N N = k·(z̄/1.645)² − k, z̄ = Σzᵢ/√k (Rosenthal 1979) Contours a study at SE s is significant at level α if |yᵢ| > z(1−α/2)·s
  • Contour-enhanced funnel plot (Peters et al., 2008): the shaded areas show where studies would be statistically significant. If the “missing” studies would be in the white area (p > .10), publication bias is a plausible explanation; if they would be in the shaded areas, other causes are more likely.
  • Trim-and-fill follows metafor’s algorithm: the side with missing studies is chosen from the sign of the Egger-type slope, the L0 estimator is iterated, and the final model is refitted with the filled studies using the same τ² estimator.
  • Begg’s test gives an exact Kendall p-value when there are no ties (as R’s cor.test(..., exact = TRUE)), otherwise a normal approximation with a tie correction.

Worked example and validation

For the 13 BCG vaccine trials (log risk ratio, REML), the classic Egger test gives t(11) = −1.40, p = .189, the mixed-effects version z = −0.80, p = .422, and Begg’s test τ = 0.026, p = .952. Trim-and-fill fills 1 study on the right, moving the pooled RR from 0.49 to 0.52 (log RR −0.714 to −0.657). The fail-safe N is 598. These match R exactly: regtest(res, model = "lm"), regtest(res), ranktest(res), trimfill(res) and fsn(yi, vi) in metafor 5.2.

Interpret with care. Asymmetry tests need at least 10 studies, and they cannot separate publication bias from genuine heterogeneity or poor methods in small studies. Report them as part of your certainty-of-evidence assessment (the GRADE “publication bias” domain). Make the main analysis in the meta-analysis calculator and rate certainty with the GRADE summary-of-findings table.
Want to run a full systematic review and meta-analysis? Our two-month, self-paced course takes you from your research question to a publishable review, with R, Excel, Word and EndNote. It is taught in Urdu/Hindi by Dr. Aammar Tufail.

Frequently asked questions

How many studies do I need to test for publication bias?

At least 10. With fewer studies, the Cochrane Handbook advises against funnel-plot asymmetry tests because they cannot reliably distinguish real asymmetry from chance.

Egger's test or Begg's test?

Egger’s regression test has more power and is reported most often. Begg’s rank test is more conservative. Many reviews report both, along with the funnel plot.

What does trim-and-fill tell me?

It estimates how many studies might be missing because of asymmetry, imputes their mirror images and recalculates the pooled effect. Use the adjusted estimate as a sensitivity analysis, not as the corrected truth, because the method assumes asymmetry is caused only by publication bias.

Why are there two Egger tests?

The classic test (Egger et al., 1997) uses ordinary least squares on standardised effects. metafor’s default regtest() fits a mixed-effects meta-regression with the standard error as moderator. Both are valid; say which one you report.

Is a fail-safe N still recommended?

It is easy to understand but widely criticised, because it ignores the size of the missing studies and their effects. The Cochrane Handbook does not recommend relying on it. Report it only alongside the other methods.

Is my data uploaded?

No. All calculations run in your browser.

Do I need to log in or create an account to use the publication bias calculator?

No. There is no login, no sign-up and no email required. Open the page and start using it straight away, for free, on any device.

How do I cite this tool in my thesis or paper?

Use the citation box on this page. In APA 7th edition: Tufail, M. A. (2026). Publication bias calculator: trim-and-fill, Egger, Begg and contour-enhanced funnel plot [Online tool]. Codanics. Retrieved [date you used it], from https://codanics.com/tools/publication-bias-calculator/. BibTeX, RIS (EndNote, Mendeley, Zotero), MLA, Harvard, Chicago and Vancouver formats are also available.

Free guides and courses from Codanics

More free tools

See all free Codanics tools → · Codanics on YouTube · WhatsApp channel

Made by Dr. Muhammad Aammar Tufail, Codanics. First published 17 November 2026, last updated 16 November 2026. Found a bug or have an idea for a new tool? Tell us on the WhatsApp channel or in the comments on YouTube. Results are for learning and planning; check important analyses with a statistician or your supervisor.