Building a Stock Screener: A Step-by-Step Tutorial for Investors
Building a stock screener means designing a repeatable system that filters thousands of stocks down to a manageable shortlist using specific numerical criteria. This tutorial takes you from blank canvas to a working screen, step by step. By the end, you will have a functional filter set and know how to adjust it as your investment thesis evolves.
A screener does not pick stocks. It eliminates the ones that do not qualify. The goal is to get from 8,000 global tickers to a focused list of 20 to 50 candidates worth deeper research.
Key Takeaways
- Building a stock screener starts with defining your investment strategy, not with choosing tools or indicators.
- The three most effective core filters for value investors are P/E ratio, ROIC, and debt-to-equity, because they address valuation, quality, and financial health simultaneously.
- A screener that returns fewer than 10 results across a broad universe is over-filtered. A screener returning 500 results is under-filtered. Calibrate toward 20 to 80 results.
- P/B ratio is particularly useful for financial sector screens because banks and insurers carry balance sheets that earnings-based metrics miss.
- Save and version your screens. Markets change, and a screen built in 2024 may need threshold adjustments in 2026 as median valuations shift.
- The ValueMarkers screener covers 120+ indicators across 73 global exchanges, which gives you far more filter combinations than any single-market tool.
Step 1: Define the Strategy Your Screen Will Serve
Before touching any tool, write down the investment strategy your screen needs to reflect. This step takes 15 minutes and saves you hours of recalibration later.
A dividend-focused strategy needs yield, payout ratio, and dividend streak filters. A deep-value strategy needs low P/B and P/E relative to historical norms. A quality-growth strategy needs high ROIC, consistent EPS growth, and manageable debt.
Each strategy produces a different screen. They are not interchangeable. Define yours first.
Step 2: Select Your Universe
The universe is the set of stocks your screen will test. The larger the universe, the more candidates pass, and the more time you need for qualitative review.
Common universes for building a stock screener:
- S&P 500: 500 large U.S. companies, pre-vetted for liquidity and reporting quality
- Russell 2000: 2,000 small-cap U.S. companies, more volatile, more opportunities to find mispriced names
- Global developed markets: 3,000 to 5,000 stocks across Europe, North America, and Asia-Pacific
- All 73 exchanges: The broadest possible screen, best for investors willing to research international businesses
Start with the S&P 500 if you are new to screening. The quality of financial reporting is highest there, and data gaps are minimal. Once you are comfortable with the methodology, expand the universe.
Step 3: Choose Your Primary Filter
Every effective screen has one primary filter, the single criterion that does most of the sorting work. Secondary filters refine the list; the primary filter defines the philosophy.
For a value screen, the primary filter is usually a valuation metric: P/E ratio, price-to-book, or EV/EBITDA. For a quality screen, it is ROIC or gross margin. For a dividend screen, it is yield or payout coverage.
Choose one primary filter and set a threshold that leaves 100 to 200 stocks in the universe before secondary filters apply. If your primary filter alone reduces 500 stocks to fewer than 30, it is too tight. If it leaves 450, it is too loose.
Step 4: Add Quality and Financial Health Filters
Once your primary valuation filter is set, add quality and financial health criteria to eliminate the value traps.
A value trap is a stock that appears cheap on P/E or P/B but is cheap because the business is deteriorating. Companies like Bed Bath and Beyond and Sears looked cheap on earnings-based metrics for years before going bankrupt.
Quality and health filters catch these:
| Filter | What It Catches | Recommended Threshold |
|---|---|---|
| ROIC | Businesses destroying rather than creating capital | Greater than 10% |
| ROE | Management's ability to generate returns on equity | Greater than 12% |
| P/B ratio | Asset-heavy businesses trading below book value | Less than 2.0 for value focus |
| Debt-to-equity | Overleveraged balance sheets at risk in downturns | Less than 1.0 (sector-adjusted) |
| Interest coverage | Ability to service debt from operating earnings | Greater than 3.0x |
| Free cash flow margin | Whether reported earnings convert to real cash | Greater than 8% |
You do not need all six. Three or four well-chosen filters produce cleaner results than six mediocre ones.
Step 5: Understand P/B Ratio in Context
The price-to-book ratio deserves specific attention because it is frequently misapplied. P/B compares market price to the accounting value of net assets. For capital-light businesses, book value is nearly meaningless. Apple's book value per share is small relative to its earnings power, and its P/B runs high as a result.
P/B becomes meaningful for:
- Banks and insurers: where assets on the balance sheet are the actual business
- Asset-heavy industrials: where plant, property, and equipment dominate the value
- Deep-value situations: where a company trades below the liquidation value of its assets
Berkshire Hathaway (BRK.B) offers a clean case study. Its P/B sits around 1.5, a figure that Warren Buffett has explicitly said is below what he considers fair value. At that multiple, buying the stock is effectively buying a collection of high-quality businesses at a discount to their replacement cost.
For a screen targeting asset-intensive sectors, set P/B below 1.5 for deep value or below 2.0 for broad value. For software and consumer brands, remove the P/B filter entirely.
Step 6: Set Growth Filters
Growth filters separate shrinking businesses from expanding ones. A company with a P/E of 12 and declining revenue is not cheap. It is a falling knife.
Add at least one growth filter when building a stock screener:
- EPS growth (5-year annualized): Measures the trend in earnings per share over a meaningful time horizon. Greater than 5% confirms the business is growing.
- Revenue growth (3-year annualized): Revenue growth is harder to engineer than earnings growth through buybacks or cost cuts. Greater than 3% is a reasonable floor.
- Free cash flow growth: The most conservative measure, because it accounts for capital expenditures. Positive FCF growth over 3 years is the benchmark.
Be careful applying growth filters to cyclical businesses. A mining company or homebuilder will show excellent EPS growth at the top of the cycle and terrible growth at the bottom. For cyclicals, compare normalized earnings to the current price rather than trailing growth rates.
Step 7: Calibrate and Test
With all your filters in place, run the screen and examine the output. Count the results, then look at the specific names that passed.
Ask two questions about the output:
- Are there obvious low-quality companies that slipped through? If yes, tighten one filter.
- Are there good companies that were excluded? If yes, loosen one filter.
Run this calibration process two or three times until the output contains a mix of names you recognize as legitimately investable and a few you did not know about. That mix is the sign of a working screen.
Then cross-check five of the output names against the ValueMarkers screener. If the fundamental data matches, your data source is reliable. If it diverges significantly, investigate the discrepancy before trusting the screen.
Pay attention to which sectors dominate the output after calibration. If nine of your top 10 results are from a single sector, your thresholds are likely capturing a structural pricing pattern in that sector rather than true cross-market mispricings. Add a sector-diversity constraint or run separate screens per sector and combine the top names from each.
Step 8: Apply the ROIC Test
ROIC is the single most predictive indicator of long-term investment returns in academic research and practitioner experience. A business that consistently earns returns on invested capital above its weighted average cost of capital creates shareholder value. One that earns below its cost of capital destroys it.
The threshold that separates value creators from value destroyers sits around 10 to 12% ROIC for most industries. Above that level, the business compounds equity over time. Below it, growth in revenue and assets actually reduces shareholder value.
Real benchmarks from companies in the ValueMarkers database: Apple's ROIC runs near 45.1%, which reflects its asset-light model and pricing power. Microsoft's ROIC sits around 35.2%, driven by high-margin cloud and software revenue. Johnson and Johnson runs around 18%, consistent with its mix of pharmaceuticals and medical devices. At the other end, capital-intensive manufacturers and commodity producers often land between 6% and 10%.
Set your ROIC floor based on the universe you are screening. For the S&P 500, 12% is a reasonable threshold. For global markets that include more industrial and commodity businesses, 8% is a more realistic floor.
Step 9: Save, Document, and Run on a Schedule
The final step in building a stock screener is making it repeatable. Save the exact configuration. Document the rationale behind each threshold in a plain-text note alongside the saved screen.
Run the screen on the same day every week. Friday afternoon after close is a common choice because you have the week's final prices and a full weekend to review candidates before markets open Monday.
The ValueMarkers screener stores your saved screens and runs them against updated data each time you open them. You do not need to rebuild the configuration each session.
Further reading: SEC Investor.gov · FINRA
Why stock screener tutorial Matters
This section anchors the discussion on stock screener tutorial. 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 stock screener tutorial 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 stock screener tutorial
See the main discussion of stock screener tutorial 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 stock screener tutorial alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.
Sector benchmarks for stock screener tutorial
See the main discussion of stock screener tutorial 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 stock screener tutorial alongside the rest of the 120-indicator composite, with sector percentiles and historical trends shown on every stock profile.
Related ValueMarkers Resources
- Roe — Glossary entry for Roe
- Pb Ratio — Glossary entry for Pb Ratio
- Roic — Glossary entry for Roic
- Stock Screener — related ValueMarkers analysis
- Create Custom Stock Screener — related ValueMarkers analysis
- Forward Pe Vs Trailing Pe Ratio Explained — related ValueMarkers analysis
Frequently Asked Questions
what happens if the stock market crashes
When the stock market crashes, a well-calibrated screener surfaces more candidates as prices fall through your valuation thresholds. Companies that were too expensive last month may now trade at P/E ratios and P/B multiples that pass your filters. The discipline of running your screen on schedule, rather than reacting emotionally to market conditions, is what lets you identify those opportunities.
what time does the stock market open
U.S. stock markets open at 9:30 a.m. Eastern Time. For building a stock screener and running it on end-of-day data, the relevant time is after 4:00 p.m. Eastern, when closing prices are final. Most screener databases refresh their price data within one hour of the closing bell, so running your screen at 5:00 or 6:00 p.m. Eastern gives you complete and accurate inputs.
are stock markets closed today
U.S. markets are closed on 10 federal holidays per year. For screener purposes, a market holiday means the database will show the prior trading day's closing prices. Your filters and fundamental data remain unchanged on a market holiday, since fundamentals update on earnings release dates, not daily.
what time does the stock market close
The NYSE and Nasdaq close at 4:00 p.m. Eastern Time on standard trading days. After-hours trading runs from 4:00 to 8:00 p.m. Eastern but is excluded from the official closing price used in screener data. When building a stock screener that relies on price-based filters (P/E, P/B), those filters calculate using the 4:00 p.m. closing price.
when does the stock market open
U.S. markets open at 9:30 a.m. Eastern Time Monday through Friday, excluding market holidays. If you are screening international markets alongside U.S. stocks, European exchanges open around 8:00 to 9:00 a.m. local time and close around 5:00 p.m. local time. Asian markets open in the evening U.S. time and close in the early morning. ValueMarkers pulls end-of-day data for each exchange within its local market day.
why is the stock market down today
Markets decline for reasons ranging from macro data surprises (CPI, jobs reports, Fed statements) to individual sector events (oil price moves, tech earnings misses) to geopolitical developments. For a screener user, a down day is a potential buying signal, not a reason to stop running screens. If the decline is broad and not sector-specific, check your screen results for new candidates that moved below your P/E or P/B thresholds.
Open the ValueMarkers screener and build your first filter set using P/E, ROIC, and debt-to-equity. Run it on the S&P 500 first, count the results, and calibrate from there. The fundamentals work across all 73 exchanges once you get the methodology right.
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.