Fórmula Joel

Fórmula Joel · educational backtest

Backtest the Magic Formula with historical Brazil and US data

A free, open tool to study a strategy inspired by Joel Greenblatt’s Magic Formula. Built on public filings (CVM and SEC) and historical prices from B3 and the US — compare against the index, with no buy recommendations.

Free and open — no sign-up.

Methodology

Two indicators, one ranking

The idea (inspired by Greenblatt): combine cheap and good. Each stock gets an EY rank and a ROC rank; the sum builds the simulated portfolio ranking.

Earnings Yield

Price

EBIT / Enterprise Value

How much operating profit the company earns relative to the cost to buy it.

Return on Capital

Quality

EBIT / (Working Capital + Net Fixed Assets)

How well the company turns invested capital into operating profit.

Output

Rebalanced ranking

Top-ranked names form an equal-weight portfolio; you choose how many stocks, the period, and rebalance frequency.

Full article on the formula

Current ranking

Top 30 by Magic Formula ranking

Universe stocks ranked by Earnings Yield (EY = EBIT ÷ EV) and Return on Capital (ROC). Higher EY means cheaper operating earnings relative to enterprise value; ROC measures capital efficiency. Download the CSV and filter in your own workflow — this is for study, not a buy list.

Download full CSV

Prices as of 2026-10-30 · fundamentals 2025 · 295 eligible stocks

#TickerCompanySectorEY (EBIT/EV)ROCEY rankROC rankScore
1DOTZ3Dotz S.A.Communication Services62.1%28.5%3710
2BOBR4Bombril S.A.Consumer Defensive38.2%33.0%9615
3RSUL4Metalúrgica Riosulense S.A.Consumer Cyclical44.4%24.5%51217
4SOND6Sondotécnica Engenharia de Solos S.A.Industrials27.8%51.8%16218
5LREN3Lojas Renner S.A.Consumer Cyclical44.4%23.5%61319
6QUAL3Qualicorp Consultoria e Corretora de Seguros S.A.Healthcare51.0%22.6%41620
7MNPR3Minupar Participações S.A.Consumer Defensive42.9%20.0%72128
8ASAI3Sendas Distribuidora S.A.Consumer Defensive29.8%21.2%131831
9BALM4Baumer S.A.Healthcare35.8%17.4%112738
10SEER3Ser Educacional S.A.Consumer Defensive28.8%17.0%142943
11PETR4Petróleo Brasileiro S.A. - PetrobrasEnergy23.8%19.7%242246
12WHRL4Whirlpool S.A.Consumer Cyclical20.2%24.6%351146
13LEVE3MAHLE Metal Leve S.A.Consumer Cyclical18.0%34.5%46551
14HOOT4Hotéis Othon S.A.Consumer Cyclical78.7%12.3%24951
15OFSA3Ouro Fino Saúde Animal Participações S.A.Healthcare18.8%25.9%431053
16VLID3Valid Soluções S.A.Industrials27.5%15.7%173653
17POMO4Marcopolo S.A.Industrials20.8%18.4%312455
18CAMB3Cambuci S.A.Consumer Cyclical21.6%16.8%283058
19BEEF3Minerva S.A.Consumer Defensive22.2%16.6%273259
20CSED3Cruzeiro do Sul Educacional S.A.Consumer Defensive27.1%14.9%194160
21PGMN3Empreendimentos Pague Menos S.A.Healthcare28.4%12.8%154762
22ANIM3Ânima Holding S.A.Consumer Defensive24.4%14.6%234366
23TECN3Technos S.A.Consumer Cyclical21.2%15.6%293766
24UGPA3Ultrapar Participações S.A.Energy16.6%21.5%511768
25GOAU4Metalurgica Gerdau S.A.Basic Materials36.6%11.5%106070
26VALE3Vale S.A.Basic Materials19.6%16.5%393372
27TFCO4Track & Field Co S.A.Consumer Cyclical13.9%27.1%65873
28TGMA3Tegma Gestão Logística S.A.Industrials14.1%27.0%64973
29VIVA3Vivara Participações S.A.Consumer Cyclical17.9%17.3%472875
30VAMO3Vamos Locação de Caminhões, Máquinas e Equipamentos S.A.Industrials18.9%15.7%403575

Scroll to see all 30 stocks

EY = EBIT/EV (inverse of EV/EBIT). Greenblatt-style ROC: EBIT ÷ (working capital + net fixed assets) — related to, but not identical to, common ROIC. Brazil live ranks may use Fundamentus ROIC as a proxy; the simulator uses the classic formula when the balance sheet is available.

Run a portfolio backtest

Data transparency

Real numbers, not marketing

We work with public market data and official financial statements — Brazil and the United States — so you can see where rankings and simulations come from.

MetricBrasilUnited States
Stocks in universe969505
Historical quotes1,637,5741,254,465
Fundamental records3,9285,499
Data updated through2026-10-302026-10-30

What the simulator does — and doesn't

Does

  • Ranks stocks by Earnings Yield and Return on Capital (Magic Formula).
  • Uses prior fiscal-year statements and prices at rebalance date — no look-ahead.
  • Compares the simulated portfolio to Ibovespa (BOVA11) or S&P 500 (IVV).
  • Shows the current ranking of eligible stocks and lets you download the list as CSV.

Does not

  • Does not predict the future or recommend buying or selling any stock.
  • Does not include brokerage fees, taxes, dividends, or slippage.
  • Does not replace financial advice or individual company analysis.

Read the full methodology article

Educational tool

This is a study tool, not investment advice.

Fórmula Joel is independent and is not an official Joel Greenblatt or Magic Formula Investing product. It exists so you can learn and experiment with the Magic Formula methodology using historical data. Nothing here is financial advice, an offer, or a recommendation to buy or sell any asset. Past performance does not guarantee future results. Investment decisions are your own responsibility — consult a licensed professional.

Open the simulator and test on history

Pick period, contributions, and market (Brazil or US). See how an equal-weight formula portfolio behaved versus the index — free, no account.

Open simulator