Skip to main content
Value Investing

Margin of Safety Stock Screener: A Step-by-Step Tutorial for Investors

JS
Written by Javier Sanz
7 min read
Share:

Margin of Safety Stock Screener: A Step-by-Step Tutorial for Investors

margin of safety stock screener — chart and analysis

A margin of safety stock screener is a filtering tool that identifies stocks trading at a discount to their estimated intrinsic value. The screen does not find stocks that are simply "cheap." It finds stocks where an independent estimate of business value exceeds the market price by a meaningful percentage. This tutorial walks through exactly how to set up and run that kind of screen, what filters to use, how to interpret the results, and where to go from there.

Key Takeaways

  • A margin of safety stock screener requires at least one valuation anchor (P/E relative to history, P/B versus book value, earnings yield) plus a quality filter to avoid value traps.
  • The screen is a starting point, not a conclusion. Every name that passes the filter needs individual analysis before you invest.
  • The most reliable margin of safety screens combine value metrics (earnings yield, P/B, free cash flow yield) with quality metrics (ROIC, earnings stability, debt load).
  • ValueMarkers' screener runs 120 indicators across every stock and ranks the VMCI Value and Quality pillars, making it one of the most comprehensive margin of safety screens available.
  • Current screen results (April 2026) show most large-cap quality names at or above fair value, with select opportunities in healthcare, certain industrials, and overlooked mid-caps.
  • Filter outputs need to be re-checked against actual business analysis before any capital is committed.

Step 1: Understand What You Are Screening For

Before setting any filter, you need to know what constitutes a margin of safety in screening terms. There are three main approaches:

Approach A: P/E-based discount. Compare a stock's current P/E to its own 10-year average P/E. If today's P/E is 35% below the historical average and earnings have not deteriorated, the stock may be trading at a discount to its own fair value history.

Approach B: Absolute valuation. Screen for low earnings yield (high earnings-to-price), low P/B versus sector median, or high free cash flow yield. These identify stocks that are cheap on fundamental metrics relative to peers.

Approach C: Model-based intrinsic value. Use a screener that runs a DCF or earnings power valuation for each stock and displays the estimated discount to that model value. This is the most direct margin of safety measure.

The ValueMarkers screener combines all three approaches through the VMCI Value pillar, which aggregates 12 separate valuation signals into a single score (scale 1-10).

Step 2: Set Your Initial Filters

A practical starting-point filter set for a margin of safety screen:

FilterSettingRationale
Market Cap$500M+Sufficient analyst coverage and liquidity
Trailing P/ELess than 15Below market median of ~21
P/B RatioLess than 2.0Below market median of ~4.1
Free Cash Flow YieldGreater than 5%Earnings quality signal
Debt-to-EquityLess than 1.5Avoid excess debt load
5-Year EPS GrowthGreater than 0%Exclude structurally declining businesses
ROICGreater than 10%Minimum quality threshold

These seven filters, applied to the S&P 1500, typically return 30-80 stocks depending on current market conditions. In a bull market at peak valuations, the list may shrink to 20-25 names. After a broad correction, it may expand to 150+.

Step 3: Add Quality Filters to Remove Value Traps

The seven filters above will still return some businesses in secular decline. The classic value traps include: companies in commoditized industries losing market share, businesses with hidden pension liabilities, and firms where the "E" in P/E is about to collapse due to one-time earnings.

Add these three quality filters to remove most value traps:

Filter 8: ROIC trend. Require that ROIC has been stable or improving over the past five years. A business with ROIC declining 2% per year, even if currently above 10%, is a deteriorating franchise.

Filter 9: Gross margin stability. Require gross margin that has not declined more than 3 percentage points over five years. Sustained gross margin compression is the early signal of competitive pressure.

Filter 10: Piotroski F-Score of 6 or above. The F-Score is a 9-point checklist of financial health signals. Scores of 6-9 indicate financially sound businesses; scores below 4 indicate distress.

In ValueMarkers, the Quality pillar (30% of VMCI) incorporates all three of these and six additional signals. Setting the Quality pillar minimum at 6/10 in the screener is equivalent to these three filters applied together.

Step 4: Run the Screen and Read the Results

After applying all filters, you will have a list of candidates. Here is how to read what you are seeing:

Sort by VMCI Value pillar score (highest first). This puts the deepest discounts at the top. A score of 8+ means the stock is in approximately the top 20% on combined valuation metrics.

Cross-reference with VMCI Quality pillar. A high Value score combined with a low Quality score (below 5) is a warning sign. Something is making the stock cheap, and it may be a deteriorating business.

Look at the VMCI Integrity pillar. Scores below 5 on Integrity flag accounting concerns: high accruals, frequent restatements, aggressive revenue recognition, or opaque disclosures. These are stocks where the margin of safety may be illusory because the financial statements are unreliable.

The ideal candidate looks like this:

  • VMCI Value pillar: 7-10 (significant discount to fair value)
  • VMCI Quality pillar: 6-9 (durable business with strong returns on capital)
  • VMCI Integrity pillar: 6-9 (clean accounting, transparent reporting)
  • Combined VMCI Score: 65+ out of 100

Step 5: Verify the Intrinsic Value Estimate

Every stock that passes your screen needs an individual intrinsic value check. Screening metrics are backward-looking and model-dependent. Your own estimate of what the business is worth matters.

For each screened candidate, do the following:

  1. Pull the last three years of free cash flow from the income and cash flow statements.
  2. Calculate average normalized free cash flow (exclude one-time items).
  3. Estimate a conservative 5-year growth rate based on: revenue growth history, industry dynamics, analyst consensus for the next two years.
  4. Run a simple DCF at an 8%, 10%, and 12% discount rate to get a range of intrinsic value estimates.
  5. Compare the midpoint of your range to the current price. If the current price is 20%+ below your midpoint, the margin of safety exists.

Use the ValueMarkers DCF calculator to complete steps 3-5 in about five minutes per stock.

Step 6: Build Your Watchlist and Set Price Alerts

Most stocks that pass your screen will not offer a sufficient margin of safety at today's price. They will be borderline: trading at 5-15% below fair value when you need 20-30%.

Build a watchlist of these borderline candidates with price alerts set at your target entry price. For a stock with a fair value estimate of $100, you need the price to reach $70-80 for a 20-30% margin of safety. Set your alert at $80, note the current price of $95, and wait.

This waiting is the underappreciated discipline of margin of safety investing. Most of the work happens before the buy, not during the hold. When your alert triggers, you already know the business, you have your intrinsic value estimate ready, and you can act confidently rather than scrambling to research under time pressure.

What Current Screen Results Look Like

Running the ValueMarkers screen with the filter set described above in April 2026:

The large-cap universe ($10B+ market cap) currently returns fewer than 15 names that pass both Value (7+) and Quality (6+) filters simultaneously. The broad market is fully priced by most metrics. Johnson & Johnson (JNJ) at a P/E near 15 and a yield above 3.1% is one of the few large-cap names near the threshold.

The mid-cap universe ($500M-$10B) returns 40-55 names, concentrated in healthcare equipment, specialty chemicals, and industrial services. These are less-covered businesses where analyst attention is thin and price discovery is slower, which is exactly where the margin of safety screen tends to find its best opportunities.

Further reading: SEC EDGAR · Investopedia

Why value investing stock screener Matters

This section anchors the discussion on value investing stock screener. The detailed treatment, formula, and worked examples appear in the body of this article above. The points below summarize the most important takeaways for value investors who want to apply value investing stock screener in real portfolio decisions. ValueMarkers exposes the underlying data on every covered ticker via the screener and stock profile pages, so the concepts in this article translate directly into actionable filters.

Key inputs for value investing stock screener

See the main discussion of value investing stock screener in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using value investing stock screener alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.

Sector benchmarks for value investing stock screener

See the main discussion of value investing stock screener in the sections above for the full treatment, including the inputs, the calculation methodology, the typical sector benchmarks, and the most common pitfalls to avoid. The ValueMarkers screener lets value investors filter the full universe of 100,000+ stocks across 73 exchanges using value investing stock screener alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.

Frequently Asked Questions

what happens if the stock market crashes

A stock market crash refers to a rapid, severe decline in prices, typically 20%+ in a short period. For investors with a margin of safety, a crash is the most favorable environment for deploying capital, as prices fall toward and below intrinsic value on a broad basis. For investors who were overpaying before the crash, the impact depends on whether the businesses they own have durable earnings power. Stocks with genuine intrinsic value recover; speculative holdings often do not.

what time does the stock market open

The New York Stock Exchange (NYSE) and Nasdaq both open for regular trading at 9:30 a.m. Eastern Time on business days. Pre-market trading is available on most brokerages from 4:00 a.m. Eastern, and after-hours trading runs until 8:00 p.m. Eastern. Prices in pre- and after-market sessions are less reliable due to lower volume, so most investors treat regular session prices as the reference for screening and valuation purposes.

are stock markets closed today

U.S. stock markets are closed on all federal holidays: New Year's Day, Martin Luther King Jr. Day, Presidents' Day, Good Friday, Memorial Day, Juneteenth, Independence Day, Labor Day, Thanksgiving, and Christmas Day. In 2026, the markets also close early (1:00 p.m. Eastern) on the day before Thanksgiving and the day before Christmas. You can verify today's status on the NYSE or Nasdaq official holiday calendars.

what time does the stock market close

The NYSE and Nasdaq close regular trading at 4:00 p.m. Eastern Time. After-hours trading continues on most platforms until 8:00 p.m. Eastern. The official closing price, used for index calculations and fund pricing, is the last trade price at or before 4:00 p.m. When a stock screener shows "current price," it reflects the most recent trade, including after-hours if available.

when does the stock market open

The U.S. stock market opens at 9:30 a.m. Eastern Time, Monday through Friday, excluding federal holidays. Pre-market trading begins as early as 4:00 a.m. Eastern on most platforms, but liquidity is sparse. For value investors using a screener, intraday price fluctuations matter less than the relationship between the price and the underlying intrinsic value, which changes slowly compared to daily price movements.

why is the stock market down today

The stock market declines on any given day for one of three categories of reasons: macro data (inflation reports, employment numbers, central bank statements), company-specific news (earnings misses, guidance cuts, management changes), or technical/flow-driven selling (options expiration, index rebalancing, fund redemptions). For margin of safety investors, a single-day decline is usually noise. A sustained decline of 10-20% in a specific stock you own warrants reassessing whether your investment thesis remains intact.

Start using the margin of safety stock screener at ValueMarkers now. Visit the screener, apply the filter sets described in this tutorial, and work through the resulting list with the DCF calculator to find your next high-conviction investment candidates.

Written by Javier Sanz, Founder of ValueMarkers. Last updated April 2026.


Ready to find your next value investment?

ValueMarkers tracks 120+ fundamental indicators across 100,000+ stocks on 73 global exchanges. Run the methodology above in seconds with our stock screener, or see today's top-ranked names on the leaderboard.

Related tools: DCF Calculator · Methodology · Compare ValueMarkers

Disclaimer: This content is for informational and educational purposes only and does not constitute investment advice, a recommendation, or an offer to buy or sell any security. Past performance does not guarantee future results. Consult a licensed financial advisor before making investment decisions.

Related Articles

Value Investing

Mastering Margin of Safety: A Value Investor's Comprehensive Guide

Margin of safety is the gap between a stock's intrinsic value and the price you pay. This guide explains how to calculate it, apply it, and use it to protect your portfolio.

14 min read

Value Investing

Case Study: Using Margin of Safety Equation to Uncover Investment Opportunities

The margin of safety equation tells you how much buffer sits between a stock's intrinsic value and its market price. This case study shows how to apply it to real stocks.

7 min read

Value Investing

Net-Net Investing: Benjamin Graham's Bargain Strategy

Net net investing is a deep value strategy created by Benjamin Graham. It targets stocks trading below their net current asset value NCAV. A net net...

6 min read

Value Investing

Benjamin Graham Explained: What Every Investor Should Know

Benjamin Graham built the intellectual foundation of value investing. This comprehensive analysis covers his life, principles, formulas, and why his methods still produce results.

14 min read

Value Investing

Johnson and Johnson Financial Ratios by the Numbers: A Data Analysis for Investors

A data-driven breakdown of Johnson and Johnson financial ratios, covering valuation, profitability, dividend health, and balance sheet strength across the last decade.

10 min read

Value Investing

The Value Investor's Define Intrinsic Value Checklist

To define intrinsic value precisely: it is the present value of a business's future free cash flows, discounted at a required rate of return.

7 min read

Weekly Stock Analysis - Free

5 undervalued stocks, fully modeled. Every Monday. No spam.

Cookie Preferences

We use cookies to analyze site usage and improve your experience. You can accept all, reject all, or customize your preferences.