Does the Magic Formula work on the ASX?

Introduction

I recently read Joel Greenblatt’s The Little Book that Still Beats the Market and was intrigued by the Magic Formula. It seemed far too simple to generate the returns it claimed yet there seemed to be an abundance of studies backing its success. After delving into some of the blogs/articles/papers on the formula, I was surprised by the lack of research on the formula's performance within Australia, especially given the maturity of the ASX. So, I decided to give it a fair crack and share the results.

The Magic Formula

Simply put, Greenblatt's formula recommends the following: Screen for companies with a market cap over $50 million and rank each company's earnings yield and return on capital. Combine the ranks to form a "cheapness to value” score (rank 1 = company with lowest yield rank +  ROC rank).  Pick the top 30 companies with the lowest score and hold them for a year. At the end of each year, sell any depreciated stocks before the 12-month mark to harvest tax losses and sell appreciated stocks after 12 months to minimize capital gains tax. After, rerun the screen, pick another 30 companies and repeat annually.

Backtesting sample

I used a screening tool to run the Magic Formula on all ASX-listed companies excluding any with market cap under $50 million AUD. Following Greenblatt’s instructions, I substituted (ROA) for Return on Capital and the P/E ratio for Earnings Yield. I then ranked the companies and added the top 30 to a portfolio.
This screening process was run iteratively from August 31st, 2025, back to January 31st, 2002. Unfortunately, data before 2002 was wonky so that is all the history I got to work with. I also wanted to see if the rebalancing date mattered so I ran the screen quarterly, saving the top 30 value stocks for January, April, July, and October of each year.
To avoid look ahead bias, all ROA and P/E values were lagged by 45 days. This is because an investor on, for example, June 30th would not have had access to the financial results from that same date until the annual report was released. In this case, on August 15th. Therefore, they would have had to rely on past data in their screen.

Top 30 companies for July 31 2025

Name

Ticker

Sector

Mkt Val (M)

ROA

PE

Breaker Resources NL

BRB-ASX

Non-Energy Minerals

104.4

84.1

2.5

Ramelius Resources Limited

RMS-ASX

Non-Energy Minerals

2390.9

21.2

6.8

Rubicon Water Limited

RHI-ASX

Non-Energy Minerals

263.6

243.1

1.7

Bolivar Gold Inc.

BOL-ASX

Finance

57.5

8.9

2.7

Atlas Pearls Ltd

ATP-ASX

Consumer Durables

61

32.4

2.6

Marmota Limited

MRM-ASX

Transportation

700.1

17.5

6.4

BSA Limited

BSA-ASX

Industrial Services

73.7

34.9

4.4

Excelsior Capital Ltd

ECL-ASX

Distribution Services

91.6

46

1.9

Bathurst Resources Limited

BRL-ASX

Energy Minerals

144.4

11.3

4.1

Integrated Research Ltd

IRI-ASX

Technology Services

78.6

19.1

3.8

Kingsgate Consolidated Limited

KCN-ASX

Non-Energy Minerals

331.2

65.5

1.5

Pure Asset Limited

PAC-ASX

Finance

618.5

26.3

3.1

Neurotech International Limited

NEU-ASX

Health Technology

1587.7

43.2

11.2

Metals X Limited

MLX-ASX

Non-Energy Minerals

367.9

21.7

3.7

West African Resources Limited

WAF-ASX

Non-Energy Minerals

1635.6

14

6.9

Magellan Financial Group Limited

MFG-ASX

Finance

1982.4

21.2

8.8

Catalyst Metals Limited

CYL-ASX

Non-Energy Minerals

583

20.2

7.8

Prudential Financial, Inc.

PRU-ASX

Non-Energy Minerals

3530.9

18.2

6.5

Lycopodium Limited

LYL-ASX

Industrial Services

386.6

20.5

8.4

Aims Property Securities Fund

APW-ASX

Miscellaneous

74.6

40.8

1

Ngi Resources Limited

NGI-ASX

Finance

842.9

17.1

3.4

MFF Capital Investments Limited

MFF-ASX

Miscellaneous

2726.1

25.1

4

Challenger Gold Limited

CEL-ASX

Non-Energy Minerals

72

40

0.9

Platina Resources Limited

PTN-ASX

Non-Energy Minerals

80.2

31.2

2.2

McGrath Holding Company Limited

MEA-ASX

Finance

66.4

13.7

5.6

Microequities Asset Management Group Ltd

MAM-ASX

Finance

67.4

28.2

9

A2B Australia Limited

A2B-ASX

Transportation

258.2

38.2

3.5

GQG Partners Inc

GQG-ASX

Finance

6113.5

99.1

9.3

Decidr AI Industries Ltd

DAI-ASX

Consumer Non-Durables

132.1

122.5

1.8

Sunbridge Group Limited

SB2-ASX

Finance

68.3

14.5

5.3


Performance setup 

The universe was then divided into four portfolios based on their rebalancing month: January, April, July, and October. Each portfolio rebalanced on the same day of its designated month each year, for example, the January portfolio rebalanced every year on January 31st. This was done to determine if the rebalancing date significantly impacted returns. All portfolios were equally weighted.
Daily returns for each portfolio were then generated for the entire period. All returns were calculated using end-of-day closing prices and included dividends. I then saved daily returns and compared them against the relevant benchmarks.


Data transformation

The initial results were promising. Each monthly portfolio's performance was generally in line with one another and with the broader market. However, the July portfolio (yellow) stood out significantly, outperforming all others by a considerable margin. Most notably, there was a large spike in 2015.

Growth of $10,000 chart

A deeper look into the July portfolio's large spike reveals it was entirely due to Nido Petroleum Limited (NDO-ASX). The price surged from $0.02 to $0.82 on June 9, 2015, resulting in a massive 3,685.71% return. This one event contributed to a 123% one day return for the entire portfolio and is the sole reason for its outperformance.
Unfortunately, Nido has since delisted so I can’t verify if the return is accurate. To control for this outlier, I zeroed out the one day return and reran the analysis. Surprisingly the July portfolio's performance completely reversed and now significantly underperforms all other months. This really shows how a one day return could make or break an entire strategy.
To standardize returns for analysis, I'll use the average return of all four portfolios. For the July portfolio, I'll use the returns with the outlier zeroed out.

July portfolio (yellow) vs outlier-removed July portfolio (red)


Results & Analysis


After charting the returns, the results look quite positive. I used the ASX All Ordinaries as the main benchmark for analysis since it holds the largest number of companies. I also included the ASX 300 and ASX 200 as they are more commonly used in the industry. To no ones surprise, the magic formula outperformed all three benchmarks.

Growth of 10,000

Breaking down the returns into annualized figures, we can see that the magic formula portfolio's best year was 2009 while its worst was 2008. Interestingly, the last 13 years have been quite rocky as the magic formula underperformed the ASX except for 2017, 2020, and 2021. If it were not for the outperformance in 2020 and 2021, there is a good chance the magic formula would have underperformed the index.

Annual returns
DateMagic FomrulaS&P/ASX 200S&P/ASX 300ASX All Ords
12/31/200226.314-8.775-8.643-8.096
12/31/200339.12714.61214.95815.864
12/31/200426.84727.99427.91927.568
12/31/200516.93822.82922.45521.088
12/31/200640.80524.22224.50924.966
12/31/200732.80516.07516.22417.953
12/31/2008-40.603-38.445-38.925-40.385
12/31/200992.91937.03337.59239.578
12/31/201013.2921.5671.9013.306
12/31/2011-10.876-10.543-10.977-11.431
12/31/201215.02520.25819.7418.841
12/31/20136.33320.19819.67619.656
12/31/2014-21.5795.615.35.022
12/31/20150.9662.5612.8043.782
12/31/201617.18411.79711.79411.647
12/31/201713.61811.79611.93512.471
12/31/2018-3.032-2.84-3.061-3.533
12/31/20195.27823.39523.77124.057
12/31/202025.9841.41.7343.635
12/31/202123.4817.23117.5417.738
12/31/2022-5.729-1.08-1.767-2.959
12/31/20236.63312.41912.13212.975
12/31/20248.51611.4411.38911.444

I also calculated a few ex-post risk statistics. I used monthly returns for this bit and the 90-day Aus Bond Bankbill as the risk-free rate. The magic formula had a higher return and standard deviation compared to the market. 

However, what surprised me was the beta, which was lower than the market's. I would have thought the beta would have been higher, as most of these companies would have price movements that are much more volatile compared to the ASX.

Another thing to note is that the Sharpe ratio is higher than the All Ords but lower than the ASX 200/300. This seems relatively in line, as our portfolio is relatively diversified (in the loosest way possible), so it makes sense that our Sharpe ratio is about the same as the market's.

Ex-post risk statistics

Risks & Caveats

Since this is my first backtest I wanted to mention a few caveats to the sample:
  1. Transaction costs and taxes are ignored. 
    • This is a significant caveat as the software I used doesn't account for taxes and transaction costs. Since the magic formula requires an almost 100% turnover every year, this would add up to a significant expense and would most definitely reduce our alpha. In spite of this, I still believe the Magic Formula would still have outperformed the market for the horizon I tested
  2. The screen fails to exclude delisted companies between fiscal year end and rebalance date.
  • I noticed the screening tool returning delisted companies on rebalance dates. For example, when I run a screen on January 31st to find the top 30 Magic Formula companies for the January portfolio, the screen uses fundamental data from the most recent report date, being June 30th of the previous year. Due to the mismatch in when fundamentals are reported and when I run the screen, it's possible for a company to pass the screen based while being delisted from the ASX before the January 31st rebalance date. I've included a timeline below to clarify this point.Fortunately, this only seems to affect a tiny portion of the universe so the impact should not be too significant. However, it does mean that the Magic Formula portfolio sometimes had fewer than 30 stocks as the analysis software would exclude the delisted company. In these situations, the analysis platform would rebalance the weights so that the remaining companies were equally weighted

Summary & Conclusion

Does the Magic Formula work in Australia? The answer seems to be abundantly clear. After backtesting the formula over a 23-year horizon across four rebalance dates, the magic formula does outperform the ASX. In fact, the formula produced a CAGR of 11.9% while the market produced around 8.5% (which is still not bad). That being said, does this mean the magic formula will continue to outperform in the near future? Given its recent rocky performance, I'm not so sure.

CAGR table
Annualized Return
DescriptionEntire Period
Magic Formula11.937
ALL ORDINARIES8.577
S&P/ASX 2008.495
S&P/ASX 3008.438
Jan Rebalance12.051
Apr Rebalance12.343
ASX Jul Rebal13.881
Oct Rebalance12.473
Jul Rebal - outlier removed10.06

What do I think? The strategy makes intuitive sense and likely works over a long enough horizon (at least 20+ years). However, the reality is quite different, as, like all active investing, it requires consistency, patience, and a strong will to push through. 

From what I've seen with people attempting to replicate the Magic Formula, most experience a string of bad years and quit early. Others might be more persistent but aren't strict about adhering to the rules of the formula (e.g., holding a lot fewer than 30 companies or inconsistent rebalancing). While I don't think people need to follow Greenblatt's rules to a tee, any deviation opens them up to other risks that might detract from the strategy's performance. 

Perhaps the Magic Formula is best left to a robo advisor, since its implementation is extremely formulaic and requires little interpretation.

Sources/ References

  • https://www.fool.com.au/2017/10/23/is-this-the-magic-formula-to-investing-in-asx-shares/
  • https://www.oldschoolvalue.com/investing-strategy/the-magic-formula-investing/
  • https://reasonabledeviations.com/2020/06/08/greenblatt-magic-formula/


Comments

Popular posts from this blog