All calculators

Alpha and Beta Calculator (Jensen's Alpha)

Your two return series

Separate values with commas, semicolons, tabs or spaces; you can paste two columns from a spreadsheet. Both series must cover the same periods, row by row. The defaults are Stock S and Market M from the beta lesson; this tool has no market data. Write 2 for +2% and −1 for a 1% loss.

Risk-free rate

Divided by the number of periods a year, so 3% a year is 0.25% a month. Used for Jensen’s alpha only; beta, R² and tracking error do not depend on it.

Beta against the benchmark
1.5
Jensen’s alpha 0.625% per month (7.5% a year, periods added). R² 0.8919.

Line 1 read as series names: Stock S, Market M. The first column is the asset, the second the benchmark.

These figures describe one past sample of the returns you entered. They are not a verdict on any security or manager and say nothing certain about what comes next.

Notes on these inputs

    How it is worked out

    • Beta = covariance(asset, benchmark) ÷ variance(benchmark), sample versions (divide by n − 1). It is also the slope of the best-fit line.
    • Correlation = covariance ÷ (sd of the asset × sd of the benchmark); R² is its square.
    • Jensen’s alpha = asset mean − (rf + β × (benchmark mean − rf)), per period, with rf = annual rate ÷ periods a year. The yearly figure multiplies by the periods in a year, adding them up without compounding.
    • Regression intercept = asset mean − β × benchmark mean. It equals Jensen’s alpha − rf × (1 − β), so the two match only when rf is 0 or β is 1.
    • Tracking error = sample standard deviation of (asset − benchmark) each period; the yearly figure multiplies by √(periods a year), an approximation.
    • When the benchmark never varies, its variance is 0 and beta, alpha, the intercept and R² are shown as n/a.

    The formulas and the worked example follow beta and alpha, explained. For how two series move together, try the correlation matrix; for return per unit of volatility, the Sharpe and Sortino calculator. This is education, not a recommendation about any security.

    What this calculator shows

    Paste two return series in percent, one row per period: the asset first and the benchmark second, with an optional header row of names. Both need the same periods, from 3 to 600. Add a yearly risk-free rate and pick the period length. The calculator returns beta, the correlation, R², Jensen's alpha per period and per year, the regression intercept, the tracking error and the number of periods. It has no market data: every number is one you type in.

    How the numbers are worked out

    Worked example (hypothetical)

    The defaults are Stock S and Market M from the lesson, six made-up months. The market mean is 1% and the stock mean is 2%. The cross-products add up to 33 and the market's squared deviations to 22, so beta is 33 ÷ 22 = 1.5. The intercept is 2 − 1.5 × 1 = 0.5%. With a 0.25% monthly risk-free rate, Jensen's alpha is 2 − (0.25 + 1.5 × 0.75) = 0.625% a month, or 7.5% over 12 months added up. R² is 49.5 ÷ 55.5, about 0.8919.

    Limits of this model

    Learn investing basics

    For educational purposes only. This material does not provide investment advice.