Interest Rate Swap Valuation Calculator
Inputs
- Inputs: notional $1,000,000.00, fixed rate 4.00%, flat discount rate 3.50%, 5 years, 2 payments per year (10 payments).
- Discount factors (1 + r/m)^-i sum to an annuity factor of 9.1012; the final discount factor is 0.8407.
- PV fixed = N x fixed/m x annuity = $182,024.46; PV floating = N x (1 - DF final) = $159,271.40 by the par-reset identity.
- Net value to the fixed-rate payer = PV floating - PV fixed = $-22,753.06; the par swap rate is 3.50%.
An interest rate swap is two loans that never happen: on a notional that stays in the drawer, one side pays a fixed rate and the other pays whatever the floating rate turns out to be. Its market value is the difference between the two legs' present values, and on a flat discount curve both legs have closed forms - the floating leg by a neat identity that needs no forecast of future rates at all. Enter the notional, the fixed rate, the curve rate, the term and the payment frequency, and this calculator values both legs, the net position of the fixed-rate payer and the par swap rate.
Worked examples
Paying 4% against a 3.5% curve
(1000000 · 4 % · 3.5 % · 5 years · 2 - semiannual)
| Net present value (receive-float payer) | $-22,753.06 |
| PV of the floating leg | $159,271.40 |
| PV of the fixed leg | $182,024.46 |
| Par swap rate | 3.50% |
| Annuity factor (sum of discount factors) | 9.1012 |
Paying 3% against a 4.25% curve
(1000000 · 3 % · 4.25 % · 3 years · 4 - quarterly)
| Net present value (receive-float payer) | $35,033.62 |
| PV of the floating leg | $119,114.31 |
| PV of the fixed leg | $84,080.69 |
| Par swap rate | 4.25% |
| Annuity factor (sum of discount factors) | 11.2108 |
Near-par ten-year swap
(5000000 · 5.6 % · 5.5 % · 10 years · 1 - annual)
| Net present value (receive-float payer) | $-37,688.13 |
| PV of the floating leg | $2,072,847.10 |
| PV of the fixed leg | $2,110,535.23 |
| Par swap rate | 5.50% |
| Annuity factor (sum of discount factors) | 7.5376 |
The two legs of a swap
The fixed leg is an annuity: the same coupon, notional times fixed rate divided by payments per year, on every payment date, each discounted back. Its value is the coupon times the annuity factor, the sum of the discount factors. The floating leg looks harder - nobody knows the future fixings - but it collapses: a floating-rate note that resets to par on every payment date is worth par immediately after a reset, so the leg's present value is the notional times one minus the final discount factor. Every unknown fixing telescopes away.
In the first worked example, a 1,000,000 five-year swap paying 4% semiannually against a 3.5% curve, the annuity factor is 9.1012, the fixed leg is worth $182,024.46 and the floating leg $159,271.40. The fixed coupons are simply too rich for the curve: the payer of fixed is underwater by $22,753.06, the difference between the legs.
Why the floating leg needs no forecast
The identity deserves a slow look, because it is the most useful trick in rates valuation. A floating payment set at the start of a period to the then-current rate, paid at the end, discounts back to exactly the difference between the period's two discount factors. Sum those differences over all periods and they telescope to one minus the last discount factor. The result holds whatever the curve's shape - this calculator's flat curve only makes the arithmetic short - and it is why a swap can be valued, hedged and quoted without anyone forecasting a single fixing.
The second example runs the identity the other way: paying 3% fixed against a 4.25% curve, quarterly for three years, the fixed leg is worth only $84,080.69 against a floating leg of $119,114.31, and the payer is in the money by $35,033.62. Cheap fixed coupons against a higher curve are an asset; the sign of the position flips with the gap between the fixed rate and the curve.
- Fixed leg - coupon x annuity factor (sum of discount factors)
- Floating leg - notional x (1 - final discount factor)
- Net to the payer - floating leg minus fixed leg
- No rate forecast appears anywhere in the floating leg
Worked examples
Example 1: Notional principal 1000000; Fixed rate paid 4; Flat discount (curve) rate 3.5; Term 5; Payments per year: 2 - semiannual. Net present value (receive-float payer) = $-22,753.06. Supporting values: PV of the floating leg $159,271.40; PV of the fixed leg $182,024.46; Par swap rate 3.50%; Annuity factor (sum of discount factors) 9.1012. Inputs: notional $1,000,000.00, fixed rate 4.00%, flat discount rate 3.50%, 5 years, 2 payments per year (10 payments). Discount factors (1 + r/m)^-i sum to an annuity factor of 9.1012; the final discount factor is 0.8407. PV fixed = N x fixed/m x annuity = $182,024.46; PV floating = N x (1 - DF final) = $159,271.40 by the par-reset identity. Net value to the fixed-rate payer = PV floating - PV fixed = $-22,753.06; the par swap rate is 3.50%.
Example 2: Notional principal 1000000; Fixed rate paid 3; Flat discount (curve) rate 4.25; Term 3; Payments per year: 4 - quarterly. Net present value (receive-float payer) = $35,033.62. Supporting values: PV of the floating leg $119,114.31; PV of the fixed leg $84,080.69; Par swap rate 4.25%; Annuity factor (sum of discount factors) 11.2108. Inputs: notional $1,000,000.00, fixed rate 3.00%, flat discount rate 4.25%, 3 years, 4 payments per year (12 payments). Discount factors (1 + r/m)^-i sum to an annuity factor of 11.2108; the final discount factor is 0.8809. PV fixed = N x fixed/m x annuity = $84,080.69; PV floating = N x (1 - DF final) = $119,114.31 by the par-reset identity. Net value to the fixed-rate payer = PV floating - PV fixed = $35,033.62; the par swap rate is 4.25%.
Example 3: Notional principal 5000000; Fixed rate paid 5.6; Flat discount (curve) rate 5.5; Term 10; Payments per year: 1 - annual. Net present value (receive-float payer) = $-37,688.13. Supporting values: PV of the floating leg $2,072,847.10; PV of the fixed leg $2,110,535.23; Par swap rate 5.50%; Annuity factor (sum of discount factors) 7.5376. Inputs: notional $5,000,000.00, fixed rate 5.60%, flat discount rate 5.50%, 10 years, 1 payments per year (10 payments). Discount factors (1 + r/m)^-i sum to an annuity factor of 7.5376; the final discount factor is 0.5854. PV fixed = N x fixed/m x annuity = $2,110,535.23; PV floating = N x (1 - DF final) = $2,072,847.10 by the par-reset identity. Net value to the fixed-rate payer = PV floating - PV fixed = $-37,688.13; the par swap rate is 5.50%.
The par swap rate
The par rate is the fixed rate that makes the two legs equal and the swap worth zero at inception - the rate actually quoted in the market. On a flat curve it has a beautiful property: it equals the curve rate itself. The third example demonstrates the identity rather than asserting it: with the discount rate at 5.5% the par rate comes out at 5.50%, and the two legs agree to the cent at $2,072,847.10 before the fixed rate is nudged to 5.6% to show a live position, which moves the payer $37,688.13 underwater.
Off a flat curve the par rate is a weighted average of the curve's forward rates, weighted by the discount factors - which is why it is read as the market's average expected rate over the swap's life, and why the annuity factor, reported with every valuation here, is the swap's interest-rate sensitivity in waiting: multiply it by the notional and a basis point and you have the DV01.
Reading a negative value
A negative value to the fixed-rate payer is not a loss realised; it is the cost of exiting or, equivalently, the value of the offsetting swap. The first example's payer, locked into 4% against a 3.5% curve, holds a position worth $-22,753.06 - just over 2% of the notional, a number that scales with the rate gap and the annuity factor. Double the remaining term and roughly double the annuity, and the same rate gap costs twice as much: swap values are rate views multiplied by time.
Sign conventions cause more operational errors than models do. This calculator always reports the position of the payer of fixed - the receive-float side. If your trade is the other way round, every sign in the output flips, including the par comparison: receiving 4% fixed against a 3.5% curve is the mirror asset.
What a flat curve leaves out
A real swap book is valued off a full curve - overnight discounting for collateralised trades, a separate projection curve for each floating index, day-count conventions that move coupons by days. None of that changes the architecture: fixed leg as annuity, floating leg by telescoping, par rate as the zero of the difference. The flat curve strips the arithmetic to that architecture so the sensitivities can be seen cleanly - how value moves with the rate gap, the term and the payment frequency.
Use the calculator for intuition, for checking a vendor price's order of magnitude, and for structuring conversations - what fixed rate makes this swap fair, what is my position worth if the curve sits here. For settlement amounts, the full multi-curve machinery with the trade's actual calendar is the only defensible route.
Two conventions of the real market deserve a footnote here, because they move prices by amounts users of a flat-curve tool should be able to estimate. First, payment frequency interacts with the rate gap: the same 4% fixed rate paid quarterly rather than semiannually reprices the fixed leg slightly, because the discounting of each smaller coupon differs - the second example's quarterly annuity factor of 11.2108 over three years is the machinery showing that effect. Second, the floating leg's telescoping identity is exact only when the floating rate and the discount rate come from the same curve; in the modern multi-curve world a spread opens between them, small in calm markets and suddenly material in stressed ones. The flat-curve value is the benchmark from which both adjustments are measured.
FAQs
What is the payer's swap worth in the first worked example?
$-22,753.06: paying 4% fixed against a 3.5% curve on 1,000,000 for five years is underwater by that amount.
What are the two legs worth in that example?
The floating leg is $159,271.40 and the fixed leg $182,024.46; the gap between them is the position's value.
What is the annuity factor in the first example?
9.1012 - the sum of the ten semiannual discount factors at 3.5%, and the multiplier that turns the fixed coupon into the fixed leg's value.
What is the second example's swap worth to the payer?
$35,033.62. Paying only 3% fixed against a 4.25% curve makes the fixed leg cheap and the position an asset.
What par rate does the third example produce?
5.50% - exactly the flat discount rate, the identity the par rate satisfies on a flat curve.
What is the annuity factor in the third example?
7.5376, the sum of ten annual discount factors at 5.5%; the two legs each value at $2,072,847.10 at the par rate.