Cox-Ingersoll-Ross (CIR) Model Calculator

Inputs

Zero-coupon bond price (per 100 face)84.16
Implied zero-coupon yield3.45%
A(t,T) factor0.9087
B(t,T) factor2.5569
Feller ratio 2 kappa theta / sigma^23.75
How this was calculated
  1. Inputs: short rate 3.00%, kappa 0.30, theta 4.00%, sigma 8.00%, maturity 5.00 years.
  2. gamma = sqrt(kappa^2 + 2 sigma^2) = 0.3206; the Riccati denominator (kappa + gamma)(e^(gamma tau) - 1) + 2 gamma = 3.1042.
  3. A = 0.9087 and B = 2.5569, so the bond price per 100 face is A x e^(-B r) = 84.16.
  4. The implied yield is -ln(price)/tau = 3.45%; the Feller ratio 3.75 above 1 keeps the short rate strictly positive.

Some interest-rate models let rates wander below zero; the Cox-Ingersoll-Ross model was built so they cannot. Its short rate follows a square-root diffusion - mean-reverting like the Vasicek model, but with volatility proportional to the square root of the rate itself, so the rate's random shocks shrink to nothing as the rate approaches zero. Enter the current short rate, the mean-reversion speed kappa, the long-run mean theta, the volatility sigma and a maturity, and this calculator returns the model's zero-coupon bond price, its implied yield and the two affine factors A and B.

Worked examples

Five-year bond, rate below the long-run mean

(3 % · 0.3 · 4 % · 8 % · 5 years)

Zero-coupon bond price (per 100 face)84.16
Implied zero-coupon yield3.45%
A(t,T) factor0.9087
B(t,T) factor2.5569
Feller ratio 2 kappa theta / sigma^23.75

Ten-year bond, low volatility

(1.5 % · 0.15 · 3 % · 5 % · 10 years)

Zero-coupon bond price (per 100 face)80.31
Implied zero-coupon yield2.19%
A(t,T) factor0.8667
B(t,T) factor5.0779
Feller ratio 2 kappa theta / sigma^23.60

Two-year bond, rate above the mean

(6 % · 0.5 · 5 % · 12 % · 2 years)

Zero-coupon bond price (per 100 face)89.40
Implied zero-coupon yield5.60%
A(t,T) factor0.9640
B(t,T) factor1.2569
Feller ratio 2 kappa theta / sigma^23.47

The square-root diffusion

The dynamics are dr = kappa(theta - r) dt + sigma sqrt(r) dW. The drift is the familiar pull toward a long-run mean; the diffusion is the innovation. Because the shock's size scales with sqrt(r), a rate near zero barely moves, and the process is absorbed away from the boundary rather than through it. That single change from the Vasicek model buys two things practitioners want: rates that stay positive, and volatility that rises with the level of rates, as money-market data persistently shows.

The strength of the pull matters as much as its target. The first worked example pairs a slow kappa of 0.3 with a theta of 4%: starting from 3%, the expected rate path creeps upward for years, and the five-year bond's implied yield of 3.45% sits between today's rate and the long-run mean, exactly where a mean-reverting curve should sit. The third example reverses the configuration - a rate of 6% above a 5% mean with a fast kappa of 0.5 - and the two-year yield of 5.60% is already most of the way down.

  • Kappa - the speed of the pull back to the long-run mean
  • Theta - the long-run mean the rate reverts to
  • Sigma - volatility, scaled by the square root of the rate
  • Gamma - sqrt(kappa^2 + 2 sigma^2), the combination that drives A and B

Reading A and B

CIR bond prices are affine: P = A e^(-B r), where B behaves like a duration that the model computes rather than assumes, and A absorbs the risk premium and the level. In the first example A is 0.9087 and B is 2.5569 for the five-year bond - B well below the maturity of 5, because mean reversion damps the effect of today's rate on distant cash flows. In the ten-year second example B grows to 5.0779 while A falls to 0.8667: longer bonds load more on the current rate, but never one-for-one.

The implied yield is the cleanest summary of the price: -ln(P)/tau. The first example's price of 84.16 per 100 face converts to 3.45%; the second example's 80.31 converts to 2.19%, low because the starting rate of 1.5% drags the whole expected path down even over ten years. Reading the three outputs together - price, yield, and the A and B split - shows whether a price is being driven by the level factor or by the current rate, which is the question that matters when the model is used for hedging.

Worked examples

Example 1: Current short rate r 3; Kappa - mean reversion speed 0.3; Theta - long-run mean rate 4; Sigma - rate volatility 8; Bond maturity 5. Zero-coupon bond price (per 100 face) = 84.16. Supporting values: Implied zero-coupon yield 3.45%; A(t,T) factor 0.9087; B(t,T) factor 2.5569; Feller ratio 2 kappa theta / sigma^2 3.75. Inputs: short rate 3.00%, kappa 0.30, theta 4.00%, sigma 8.00%, maturity 5.00 years. gamma = sqrt(kappa^2 + 2 sigma^2) = 0.3206; the Riccati denominator (kappa + gamma)(e^(gamma tau) - 1) + 2 gamma = 3.1042. A = 0.9087 and B = 2.5569, so the bond price per 100 face is A x e^(-B r) = 84.16. The implied yield is -ln(price)/tau = 3.45%; the Feller ratio 3.75 above 1 keeps the short rate strictly positive.

Example 2: Current short rate r 1.5; Kappa - mean reversion speed 0.15; Theta - long-run mean rate 3; Sigma - rate volatility 5; Bond maturity 10. Zero-coupon bond price (per 100 face) = 80.31. Supporting values: Implied zero-coupon yield 2.19%; A(t,T) factor 0.8667; B(t,T) factor 5.0779; Feller ratio 2 kappa theta / sigma^2 3.60. Inputs: short rate 1.50%, kappa 0.15, theta 3.00%, sigma 5.00%, maturity 10.00 years. gamma = sqrt(kappa^2 + 2 sigma^2) = 0.1658; the Riccati denominator (kappa + gamma)(e^(gamma tau) - 1) + 2 gamma = 1.6741. A = 0.8667 and B = 5.0779, so the bond price per 100 face is A x e^(-B r) = 80.31. The implied yield is -ln(price)/tau = 2.19%; the Feller ratio 3.60 above 1 keeps the short rate strictly positive.

Example 3: Current short rate r 6; Kappa - mean reversion speed 0.5; Theta - long-run mean rate 5; Sigma - rate volatility 12; Bond maturity 2. Zero-coupon bond price (per 100 face) = 89.40. Supporting values: Implied zero-coupon yield 5.60%; A(t,T) factor 0.9640; B(t,T) factor 1.2569; Feller ratio 2 kappa theta / sigma^2 3.47. Inputs: short rate 6.00%, kappa 0.50, theta 5.00%, sigma 12.00%, maturity 2.00 years. gamma = sqrt(kappa^2 + 2 sigma^2) = 0.5280; the Riccati denominator (kappa + gamma)(e^(gamma tau) - 1) + 2 gamma = 2.9835. A = 0.9640 and B = 1.2569, so the bond price per 100 face is A x e^(-B r) = 89.40. The implied yield is -ln(price)/tau = 5.60%; the Feller ratio 3.47 above 1 keeps the short rate strictly positive.

The Feller condition

Whether the rate can actually touch zero is decided by the Feller ratio 2 kappa theta / sigma^2. Above 1, the drift's pull near zero overwhelms the shrinking diffusion and the rate stays strictly positive; below 1, zero becomes attainable and simulation schemes need care at the boundary. All three worked examples sit comfortably above the line - ratios of 3.75, 3.60 and 3.47 - because their volatilities are modest relative to the pull toward the mean.

The ratio is also a calibration warning. Fitted to data with high rate volatility, CIR calibrations often land near or below 1, and then the model's elegant positivity is a property of the boundary condition rather than of the paths. When the ratio is low, the honest reading of a bond price from this calculator is that it comes from the risk-neutral formula, which remains valid, while any Monte Carlo built on the same parameters will spend its life patching negative rates.

CIR vs Vasicek

The two models share the mean-reverting drift and the affine bond formula, and differ only in the diffusion: constant sigma for Vasicek, sigma sqrt(r) for CIR. That difference propagates everywhere. Vasicek rates are Gaussian and can go negative, which some eras of euro and yen data made look less like a defect than a feature; CIR rates are non-central chi-square distributed, right-skewed, with volatility that breathes with the level. Their B factors differ too, CIR's carrying the extra gamma term that the square root introduces.

Choosing between them is choosing which stylised fact to keep. If the desk's problem is volatility that clearly rises with rates - the classic money-market pattern - CIR is the honest model. If the problem is tractability around zero or negative policy rates, the Gaussian model wins on realism of a different kind. The calculators sit side by side deliberately: run the same kappa, theta and sigma through both and the price gap is the value of the positivity assumption, stated in currency rather than argued in prose.

Where CIR is used

Beyond bond pricing, the square-root process became a building block: it is the variance process inside the Heston model with different parameter names, the intensity process in many credit models, and the stochastic-volatility driver in a generation of hybrid models. Its bond formula also survives as a quoting device - A and B translate a whole curve view into two numbers a risk system can store.

Its limits are the limits of every one-factor model: all maturities move together, so the curve can twist in level but never independently in slope. The examples here are chosen inside the model's comfort zone - positive rates, moderate volatilities, Feller ratios well above 1 - and the further a calibration strays from that zone, the more the user should treat the closed form as a benchmark to think against rather than a price to deal on.

One more property of the square-root process deserves emphasis, because it decides how the model behaves in a crisis narrative. When the rate is high, the diffusion term is large - volatility of 8% at a rate of 3% becomes far larger in absolute terms at a rate of 6% - so the model's rate paths fan out exactly when rates are elevated, while near zero they quieten. Stress scenarios built on CIR therefore widen where a Gaussian model merely shifts, and a risk manager comparing the two should expect the square-root model's tail prices, not just its central prices, to differ. The bond formula prices all of that without simulation, which remains the model's enduring convenience.

FAQs

What is the five-year bond price in the first worked example?

84.16 per 100 face, from a short rate of 3%, kappa 0.3, theta 4% and sigma 8%.

What yield does that price imply?

3.45% - between the current 3% rate and the 4% long-run mean, as a mean-reverting curve requires.

What are A and B in the first example?

A is 0.9087 and B is 2.5569. B acts like a model-computed duration, damped below the 5-year maturity by mean reversion.

What is the Feller ratio in the first example?

3.75. Above 1, the pull toward the mean dominates near zero and the short rate stays strictly positive.

What does the ten-year bond in the second example cost?

80.31 per 100 face, a yield of 2.19%; the low 1.5% starting rate drags the expected path down for years.

What is the two-year bond price in the third example?

89.40, implying 5.60%: with kappa at 0.5 the 6% starting rate is already most of the way down to the 5% mean.

Sources

Related calculators

Vasicek Interest Rate Model Calculator
The Vasicek short-rate model: closed-form zero-coupon bond price and yield from a mean-reverting rate with speed a, long-run mean b and volatility sigma.
Nelson-Siegel Yield Curve Calculator
The Nelson-Siegel parametric yield curve: spot yield and instantaneous forward rate at any maturity from beta0, beta1, beta2 and the decay parameter lambda.
Zero-Coupon Bond Calculator
Zero-coupon bond pricing and yield: the discounted price of a face value at any compounding, or the yield implied by a price.