Swap calculator: interest rate and cross-currency
Calculators › Interest Rate Derivatives › Swap: Interest Rate and Cross Currency
The legs are in one currency: fixed against floating either way, or two IBOR legs (a basis swap). The notional is repaid at expiry.
Results
Reading the calculator
Laid out as the GIAnalyzer example sheets: blue values are inputs, black values are calculated. Select a figure to see its GIAnalyzer formula.
- Two legs, row for row: each leg has its currency, fixed or floating, notional, rate and schedule. A row that is not the leg's is dimmed.
- Reference rate: a floating leg pays a term rate fixed at the start of each period, as Term SOFR, EURIBOR or TELBOR (GIAnalyzer's IBOR leg), or an overnight rate compounded over the period, as SOFR, €STR or SHIR (its RFR leg).
- Signs: the pay leg's value is negative, the receive leg's positive; the total is the swap's value to you.
- One currency: fixed against floating either way (interest rate swap on IBOR, overnight index swap on RFR), or two IBOR legs (a basis swap). Both legs share the currency and the notional.
- Two currencies: each leg pays in its own, any type against any type: a cross-currency swap. The FX spot is quoted as its label says.
- Layout: General stands left of the legs: the expiry date, the principal, the date rolling method, the notional exchanges and, in two currencies, the FX spot. The calculation settings have a box beside the results; the curves are entered on the Raw part of the Market Data tab, and apply on every tab.
- Principal: a bullet swap repays its notional at expiry. A standardized amortizing swap repays a fixed percent of the notional on each principal payment date from the first; a custom one, the percent set beside each date of its schedule. Coupons accrue on the balance outstanding. Two IBOR legs in one currency take no custom schedule: GIAnalyzer has no custom basis swap.
- Basic values each currency on one zero curve, which both discounts the cash flows and forecasts the floating rates. Advanced adds a forecasting curve for each floating leg. An RFR leg takes its past fixings at both levels.
- Value: each leg's value, DV01 and durations; in two currencies, the value and DV01 in both currencies. A fixed and an IBOR leg in one currency add the fair fixed rate, Coupon01, and carry and roll-down to the horizon date.
- Cash flows: each leg's payments: dates, balance, rate, interest, principal, discount factor and present value.
- Key rate risk: each leg's sensitivity to each point of its curves, and to the points between two terms together, each table with a graph by term.
- Market Data has two parts. Raw: each currency's curves, or the quotes they are built from, with the compounding, time basis and interpolation they are read on, and an RFR leg's past fixings; the FX spot and the last reset rates entered with the terms. The curves, quotes and fixings are edited here, and a change applies on every tab. Calculated: what our models build from them: each curve point by point, with its year fraction, zero rate and discount factor, and each quote's misfit when the curve is built from quotes; each floating period's rate, set at the last reset, read off the forecasting curve or compounded from the overnight rate; and graphs of the curves' zero rates and discount factors.
- Curves from market quotes: at Advanced, the Raw part of the Market Data tab can build the curves from quotes instead of zero rates. Each currency's discounting curve comes from its overnight rate, OIS and futures; each IBOR leg's forecasting curve from its index's deposit, futures and swaps, discounted on the OIS curve. An RFR leg forecasts on the OIS curve. The curves then apply on every tab, and the Calculated part of the Market Data tab shows every quote with its misfit on the curve. The example quotes are illustrative, for every currency the calculators support; they are listed under Market data: swap curves.
Stand-in figures. While the calculator service is being connected, the figures are computed in your browser by a copy of the GIAnalyzer formulas. The copy gives the figures GIAnalyzer saved in its example sheets. The example sheets hold no carry or roll-down, so the horizon date and these figures are the calculator's own. In two currencies on a custom schedule, the example sheets total a swap paying RFR with that leg in its own currency; the calculator converts it, so its total differs.
How the figures are calculated
- Coupon dates: laid out back from the expiry date by the leg's coupon frequency, each moved off a weekend by the date rolling method, to the period under way on the value date. Holidays are not taken into account.
- Fixed coupons: the rate times the period's year fraction in the leg's time basis, times the notional outstanding.
- IBOR coupons: the period under way pays the last reset rate; each later period pays the forward rate the forecasting curve gives for it, simple in the leg's time basis, plus the spread.
- RFR coupons: each period compounds the daily overnight rate over its days, the past fixings up to the value date and the forecasting curve after it, plus the spread. The RFR calculation method chooses between compounding day by day (exact) and GIAnalyzer's approximation from the curve's forward rate for the period.
- Curves from quotes: each curve has a point at each quote's end date, solved in order so that the quote values to zero on the curve as the swap functions value it: a deposit's or future's rate is the curve's simple rate over its period, a swap at its quoted rate is worth zero. A future's rate is 100 less its price, less its convexity adjustment. The curve is interpolated linearly or log-linearly. GIAnalyzer has no function for this yet; the formulas give the specified one,
GIA_IRD_SwapCurve_Bootstrap, and each figure on the curve is the same as on its zero rates entered as a curve. - Present value: each coupon and principal payment times its discount factor from the spot date, at the rate of the leg's discounting curve for the payment date in the compounding and time basis chosen. Notional exchange 0 adds the exchange at the start, notional exchange 1 the repayments.
- Two currencies: each leg is valued in its own currency on its own curves; the FX spot turns a leg's value into the other currency, and the total is the two legs' values in one currency.
- Fair fixed rate: the fixed rate at which the swap is worth zero, with the repayments and without the exchange at the start.
- Custom principal schedule: valued with GIAnalyzer's custom amortizing swap functions, which give each figure above except carry and roll-down.
- DV01: the change in a leg's value for a one basis point move in its curves, measured both ways and halved, with its sign turned. A fixed leg moves with its discounting curve, a floating leg with both. See DV01. GIAnalyzer gives the total DV01 of a swap in one currency; of a basis swap, the two legs' together; of a swap in two currencies, none.
- Coupon01: the change in the fixed leg's value for a one basis point move in its fixed rate, measured both ways and halved. The floating leg has none. See Coupon01.
- Carry: what each leg pays up to the horizon date, valued today. With count accrual, add the coupon accrued at the spot date less what has accrued by the horizon, with the leg's sign. See Carry and roll-down.
- Roll-down: what the leg's payments after the horizon are worth on the curves rolled down to it (the same curve, read from the horizon on), less what the leg is worth today.
- Carry and roll-down as rates: carry is the fair rate of what remains of the swap after the horizon less today's fair rate; roll-down is today's fair rate less that of the swap shortened by the horizon.
- Durations: Macaulay duration is the payments' times from spot weighted by their present values. A fixed leg's modified duration is its DV01 over a basis point of its value; a floating leg's is the time to its next coupon date.
- Key rate risk: KR01 moves one curve point by one basis point, KRDuration by one percent over the leg's value; the bucket measures move every point between two terms. Terms are read from the spot date. See Key rate DV01.
- Curves: each rate is read off its curve by the interpolation method chosen: linear, log-linear, exponential or cubic spline.
The interest rate derivatives methodology describes our models, and the function reference every argument of the generic swap functions, the interest rate swap, overnight index swap, basis swap, cross-currency swap and custom amortizing swap (interest rate, overnight index, cross-currency) functions.
