Yield Curve Calculator

Build a yield curve from your input points. See discount factors and forwards instantly today. Download CSV or PDF, then share results confidently anywhere.

Linear interpolation Natural cubic spline Nelson–Siegel fit Discount factors Forward rates
Calculator inputs
Paste points, pick a curve method, then generate a maturity grid.
Spline and Nelson–Siegel can smooth noisy points.
Forward rates are shown in continuous terms.
Example: 0.25 for quarterly maturities.
If below your last point, it auto-expands.
One point per line. Formats: 1, 12.3 or 1 12.3. Lines starting with # are ignored.
After submit, results appear above this form.
Example input table
Use this structure when preparing your data.
Maturity (years) Yield (%) Typical source
0.2511.80T-bill / money market
1.0012.30Short-term note
5.0012.85Medium-term bond
10.0013.05Long-term bond
Replace values with your market quotes or internal curve assumptions.
Formula used
Key relationships behind the curve, discounting, and forwards.
Interpolation
Linear: between two bracketing points (t0,y0) and (t1,y1), y(t)=y0 + (t−t0)/(t1−t0)·(y1−y0). Spline: a natural cubic spline creates smooth first and second derivatives across maturities.
Nelson–Siegel curve
y(t)=β0 + β1·((1−e^(−t/τ))/(t/τ)) + β2·(((1−e^(−t/τ))/(t/τ)) − e^(−t/τ)). This tool scans τ and solves β by least squares at each τ.
Discount factor
With nominal compounding m times per year: DF(t)= (1 + y/m)^(−m·t). With continuous compounding: DF(t)= e^(−y·t). Here y is the spot yield in decimal form.
Forward rate (continuous)
Over a step from t1 to t2: f = (ln DF(t1) − ln DF(t2)) / (t2 − t1). Reported as an annualized percentage.
How to use this calculator
A practical workflow for building and exporting curves.
  1. Paste your points as maturity in years and yield in percent.
  2. Select a curve method to interpolate or fit smooth rates.
  3. Choose grid step to control table granularity and chart smoothness.
  4. Pick compounding for discount factor calculations.
  5. Generate to show results above the form instantly.
  6. Download CSV or PDF to save tables and share outputs.
If your market quotes are par yields, convert them to spot rates before use.
Insights
Practical notes for curve building, discounting, and interpretation.

Market inputs and units

Enter maturities in years and spot yields in percent. A quarterly bill is 0.25, a 6‑month bill is 0.50, and a 10‑year bond is 10.00. Keep units consistent across markets. If you have day counts, convert to year fractions first. When rates are negative, keep the sign; the discount factor formula still works.

Curve construction choices

Linear interpolation preserves local shape between quotes and is easy to audit. Natural cubic spline adds smooth first and second derivatives, reducing kinks that can create unrealistic forwards. Nelson–Siegel is a parametric fit that summarizes level, slope, and curvature, and the calculator reports β0, β1, β2, τ, and the fit SSE for transparency.

Discount factors for valuation

The calculator converts each spot yield y(t) to a discount factor DF(t). With m‑times compounding: DF(t)=(1+y/m)^(−m·t). With continuous compounding: DF(t)=e^(−y·t). For example, with y=12% and t=2, semiannual DF≈(1+0.12/2)^(−4)≈0.790. Discount factors are then used to price coupons, swaps, and project cash flows.

Forward rates and curve health

Forward rates are derived from discount factors over each grid step: f=(ln DF(t1)−ln DF(t2))/(t2−t1). A smaller grid step, such as 0.25 years, gives a smoother Plotly line but can amplify micro‑noise in forwards. A larger step, such as 0.50, is more stable for sparse curves. Large spikes often indicate inconsistent quotes or an over‑smooth fit.

Interpreting slope and curvature

An upward‑sloping curve typically implies higher expected short rates or term premia at longer maturities. An inverted curve often signals tighter policy expectations or recession concerns. Curvature highlights “humps” where intermediate maturities price differently than short and long ends. Track changes in 2s–10s and 3m–10y spreads to summarize slope shifts.

Exporting for reporting

After calculation, the table and Plotly chart can be exported. CSV is ideal for spreadsheets, scenario engines, and model inputs. PDF captures method, grid settings, and the computed curve table for audit trails and stakeholder review. Save multiple runs to compare curve shifts across dates, issuers, or stress scenarios. For risk work, export two curves and compute changes in spot, DF, and forwards by maturity. Pair the PDF with source quotes to document assumptions. Consistent naming of files by date and market helps reproduce results during reviews and supports quick backtesting of curve-building choices internally.

FAQs
Common questions when building and exporting yield curves.

1) What data should I paste into the points box?

Paste maturity in years and the corresponding spot yield in percent, one line per point. Use commas or spaces. Keep maturities strictly positive and cover the curve range you need.

2) When should I use spline instead of linear interpolation?

Use spline when you want a smoother curve and your points are reasonably consistent. If the input set has jumps or scarce quotes, spline can overshoot, so compare forwards to validate stability.

3) What does Nelson–Siegel add?

Nelson–Siegel summarizes the term structure with a small parameter set (level, slope, curvature). It is useful for scenario comparison and for producing stable curves when you prefer a parametric shape.

4) How are discount factors computed here?

Discount factors are computed from spot yields using your chosen compounding convention. The calculator supports annual, semiannual, quarterly, monthly, and continuous discounting. Yields are interpreted as nominal spot rates.

5) Why can forward rates look volatile?

Forwards are sensitive to small differences in discount factors, especially with small grid steps. Try a larger step, add more input points, or switch methods. Volatility can also reflect genuine market discontinuities.

6) What is the best export format for audits?

Use PDF to preserve settings, method, and the full curve table in a single artifact. Pair it with the original quote source. Use CSV when you need to reuse the curve as model input.

Related Calculators

sinking fund calculatorpurchasing power parity calculator

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.