Serenity Ratio Calculator

Divide your entered excess return by Ulcer Index multiplied by Pitfall. Supply risk statistics from a consistent return history; this form performs the final ratio arithmetic.

Use the same evaluation period and return convention as the risk inputs.

Match currency and period. If the portfolio input is already an excess return, enter 0.

Precomputed root mean square of drawdowns, not arithmetic average drawdown.

Precomputed |CDaR| / annualized volatility. Enter 2 for a factor of two.

Serenity Ratio
—

Enter all four values to calculate.

Excess return

—

Portfolio return minus the matched risk-free return.

Penalized risk

—

Ulcer Index × Pitfall. It is a composite risk denominator, not a forecast loss.

The published formula

KeyQuant's An Alternative Portfolio Theory, Part I defines penalized risk as Ulcer Index times the Pitfall Indicator. The paper uses returns net of the risk-free rate. This form expresses the final calculation as:

Serenity = (portfolio return − risk-free return) / (Ulcer Index × Pitfall)

Ulcer Index is the square root of the mean squared drawdowns over the chosen history. Pitfall divides the magnitude of conditional drawdown at risk (CDaR) by annualized return volatility. CDaR summarizes tail drawdowns at a chosen confidence level. These inputs cannot be reconstructed from an arithmetic average drawdown alone.

Worked arithmetic example

For hypothetical inputs of 12% portfolio return, 4% risk-free return, 8% Ulcer Index, and Pitfall 2, excess return is 8 percentage points and penalized risk is 16%. Serenity is 8/16 = 0.5. Dividing by 8% average drawdown instead would calculate a different metric.

Prepare comparable inputs

  1. Choose a return history, currency, sampling frequency, and fee treatment. Use the same window for all statistics.
  2. Document how risk-free returns were removed. The original research evaluates excess-return paths; raw-portfolio drawdowns and excess-return drawdowns can differ. This form cannot reconcile them.
  3. Calculate Ulcer Index and CDaR from that drawdown series. Record the confidence level and empirical tail convention used for CDaR.
  4. Divide the positive CDaR magnitude by annualized volatility to obtain Pitfall. Enter percentage values for returns and Ulcer Index, and a unitless multiple for Pitfall.

Interpretation and limits

The ratio describes the supplied historical inputs. It does not infer future tail losses, liquidity, leverage limits, or the probability of ruin. The authors' follow-up paper cautions that the historical Serenity statistic does not predict future deeper drawdowns. No result here is a portfolio recommendation.

For the same positive excess return, reducing the denominator increases the ratio. With negative excess return, reducing the denominator makes the ratio more negative. Ranking negative-return strategies by this number alone can therefore be misleading. Zero Ulcer Index or Pitfall produces an undefined ratio, not proof of risk-free performance.

Serenity, Martin, and Calmar

The Martin or Ulcer Performance Index uses excess return divided by Ulcer Index. Serenity adds the Pitfall multiplier. Calmar uses maximum drawdown under its specified return and evaluation-window convention. Keep those denominators distinct and use matching definitions when comparing reported statistics.

Sources: KeyQuant, An Alternative Portfolio Theory, Part I, sections II–V; Part II, introduction; and TradingView's Ulcer Index reference. The publisher's legacy white-paper URLs may redirect; the cited definitions refer to those historical papers.

Frequently Asked Questions

How is the Serenity Ratio calculated?

The KeyQuant formulation divides excess return by penalized risk: Ulcer Index multiplied by the Pitfall Indicator. This calculator applies (portfolio return minus risk-free rate) / (Ulcer Index times Pitfall) to manual inputs. It does not calculate the inputs from a portfolio history.

Is average drawdown the denominator?

No. Ulcer Index is the root mean square of drawdowns, and the Pitfall Indicator introduces a tail-drawdown penalty. Dividing excess return by an arithmetic average drawdown produces a different ratio.

What should I enter for Pitfall?

Enter a positive precomputed dimensionless ratio: the magnitude of conditional drawdown at risk (CDaR) divided by annualized return volatility. Use the same return history and document the CDaR confidence level, sampling frequency, and drawdown convention. Enter 2 for a factor of two, not 200.

What is a good Serenity Ratio?

This tool applies no universal good or excellent thresholds. A positive result means positive entered excess return; a negative result means negative entered excess return. Compare only consistently estimated inputs. The result is descriptive and does not forecast future drawdowns.

Why are zero or blank risk inputs rejected?

Blank fields are not treated as zero. Ulcer Index and Pitfall must be finite and strictly positive; a zero denominator makes the ratio undefined. No number is displayed when the arithmetic would overflow.

Are my portfolio figures uploaded?

The calculator performs this arithmetic in your browser and does not submit these inputs to a data API. It does not connect a brokerage account or fetch a return history. This describes the calculator inputs, not a claim that the website has no analytics or network requests.

Build Pine Script from Your Trading Rules

Use Pineify's AI tools to draft indicators and strategies, then review their logic and results. This calculator does not optimize or execute a strategy.

Explore Pineify