← Lee Smallwood / Labs

Magic Formula / equity research

A working version of Joel Greenblatt's Magic Formula from The Little Book That Beats the Market. Each company is ranked on how cheap it is (earnings yield) and how good it is (return on capital), and the two ranks are added.

DEMO / 24 fictional companiesBundled sample · not live market data

The shortlist sits in the cheap-and-good corner

Earnings yield against return on capital for every company that passes the filters

ShortlistedOther companies

Shortlist

–

    Full ranking

    Select a column heading to sort. Figures in $m unless stated. Ranks reflect the selected dataset and filters, not the entire market. Financial values are in USD millions; market cap is USD billions.

    Earnings yield = EBIT ÷ enterprise value

    What the business earns before interest and tax, relative to the price of the whole company including its debt. Higher means cheaper.

    Return on capital = EBIT ÷ (net fixed assets + working capital)

    How much profit each pound of operating capital produces. Higher means a better business. Negative working capital is counted as zero.

    How Greenblatt uses it

    Buy 20–30 top-ranked stocks, a few every two to three months, hold each for about a year, then replace them with the current top names. Financials and utilities are excluded because their balance sheets don't fit the formula.

    Data source, refresh & import

    The original dataset is synthetic. To use real data, export a consistent, dated universe from your brokerage or licensed fundamentals vendor. For US filings, SEC EDGAR supplies reported accounting data; a separate market-price and enterprise-value source is needed. EDGAR does not support browser CORS. This tool does not fetch live market data by default.

    Refresh re-ranks loaded data, or fetches the configured feed. No credentials required; do not put API keys in URLs.

    One row per company: name,ticker,sector,market cap ($bn),EBIT,enterprise value,net fixed assets,net working capital, with the last four in the same currency unit.

    For education only, not investment advice. Rankings depend entirely on the quality of the input data.