To calculate a swap rate, take one minus the discount factor at the final payment date and divide it by the sum of the discount factors at every scheduled payment date. That single ratio produces the fixed rate that makes an interest rate swap worth zero to both sides at inception, which is what “the swap rate” means in a plain vanilla trade. Everything else in the calculation is preparation: pulling the right inputs, building the discount factors correctly, and adjusting the formula when the swap isn’t a flat bullet structure.
Inputs You Need Before You Start
Four pieces of information drive the whole calculation. Get any one of them wrong and the result won’t match the market.
- Notional principal. The dollar amount the interest payments are calculated on. No principal changes hands in a plain vanilla swap, but this figure scales every cash flow.
- Tenor. The total duration, commonly one to thirty years.
- Payment frequency. How often the legs settle, typically quarterly or semi-annually. This determines how many discount factors you need.
- Floating rate benchmark. The reference rate for the variable leg. In U.S. dollar markets, the Secured Overnight Financing Rate is now dominant after the cessation of all U.S. dollar LIBOR panel settings on June 30, 2023.1Federal Reserve Bank of New York. Transition From LIBOR
On top of those trade terms, you need a zero-coupon yield curve built from current market data. The curve gives you a spot rate for every maturity your swap touches, and those spot rates are what you convert into discount factors. The Federal Reserve Bank of New York publishes SOFR daily at approximately 8:00 a.m. ET, calculated as a volume-weighted median of overnight Treasury repurchase agreement transactions.2Federal Reserve Bank of New York. Secured Overnight Financing Rate Data Most desks pull curve data from Bloomberg or Reuters, but the New York Fed’s published rates sit underneath.
One caution on the floating side. Term SOFR is forward-looking, derived from SOFR futures and overnight index swap transactions. Daily Simple SOFR, more common in loan markets, applies each day’s published rate with simple interest. The standard convention for swap floating legs is compounded SOFR in arrears, which compounds the overnight rate across the entire interest period. Which variant your swap references changes how you model the floating leg’s cash flows.
Building the Discount Factors
A discount factor tells you what one dollar received at a future date is worth today. For a given payment date:
DFt = 1 ÷ (1 + rt)t
Here rt is the zero-coupon spot rate for that maturity and t is the time in years. A one-year spot rate of 4 percent gives a discount factor of 1 ÷ 1.04 = 0.9615. A two-year spot rate of 4.5 percent gives 1 ÷ (1.045)2 = 0.9157. Each payment date needs its own discount factor pulled from the corresponding point on the curve.
Practitioners typically build the zero-coupon curve by bootstrapping from observable market instruments: Treasury bills for short maturities, SOFR futures for intermediate dates, and swap rates themselves for longer tenors. These values shift constantly with market conditions, so any pricing done today uses today’s curve.
One structural point worth flagging before you pick a curve. For collateralized or centrally cleared swaps, the discount factors should come from an overnight index swap curve, not a term rate curve. The reasoning is that the collateral posted against the swap earns the overnight rate, so that rate is the correct one for discounting the cash flows. The industry moved to OIS discounting after the 2008 crisis exposed the credit risk embedded in LIBOR, and it has been the standard for cleared swaps since.
The Par Swap Rate Formula
The par swap rate is the fixed rate that sets the present value of the fixed leg equal to the present value of the floating leg. The formula:
Swap Rate = (1 − DFn) ÷ (DF1 + DF2 + … + DFn)
DFn is the discount factor at the final payment date. The denominator is the sum of discount factors at every scheduled payment date. For annual payments, the denominator stands as written. When payments happen more frequently, each discount factor in the denominator gets multiplied by the accrual fraction for its period, which the day-count convention determines.
The numerator captures the total present-value decay from the start of the swap to its end. The denominator is what a stream of one-dollar fixed payments is worth today across all payment dates. This is sometimes called the annuity method, because the denominator is effectively the present value of an annuity of one.
A Three-Year Worked Example
Take a three-year plain vanilla swap with annual payments and a notional of $10 million. The current zero-coupon spot rates are 4.00 percent at one year, 4.50 percent at two years, and 5.00 percent at three years.
Step 1: Discount Factors
- Year 1: DF1 = 1 ÷ (1.04)1 = 0.9615
- Year 2: DF2 = 1 ÷ (1.045)2 = 0.9157
- Year 3: DF3 = 1 ÷ (1.05)3 = 0.8638
Step 2: Apply the Formula
Sum the discount factors: 0.9615 + 0.9157 + 0.8638 = 2.7410. The numerator is 1 − 0.8638 = 0.1362. Divide: 0.1362 ÷ 2.7410 = 0.0497, or roughly 4.97 percent. That’s the par swap rate.
On $10 million notional, the annual fixed payment works out to $497,000.
Step 3: Verify With Forward Rates
The par formula is a shortcut. To confirm it, extract the implied forward rates from the same curve and price the floating leg directly. A forward rate is the market-implied rate for a future period, and for adjacent annual periods:
f(t−1, t) = [(1 + rt)t ÷ (1 + rt−1)t−1] − 1
- Year 1 forward: 4.00 percent (equals the one-year spot)
- Year 2 forward: [(1.045)2 ÷ 1.04] − 1 = 5.00 percent
- Year 3 forward: [(1.05)3 ÷ (1.045)2] − 1 = 6.01 percent
Present value of the floating leg: (0.04 × 0.9615) + (0.05 × 0.9157) + (0.0601 × 0.8638) = 0.0385 + 0.0458 + 0.0519 = 0.1362. Present value of the fixed leg at 4.97 percent: 0.0497 × 2.7410 = 0.1362. The two sides match, which is what “worth zero at inception” means.
Working through the forwards is also how you diagnose a swap rate that looks off. If a quoted rate seems high or low compared to your calculation, breaking out the forwards tells you which segment of the curve is driving the difference.
Day-Count Conventions
The day-count convention determines how you measure the fraction of a year each payment period covers. Two dominate swap markets:
- 30/360. Treats every month as 30 days and every year as 360 days. A full month always counts as 30 days regardless of the calendar. Common for U.S. dollar fixed legs.
- Actual/360. Counts the real number of days in each period but divides by 360. A 90-day quarter is 90/360 = 0.25; a 92-day quarter is 92/360 = 0.2556. Typical for floating legs referencing SOFR or similar overnight rates.
When the fixed and floating legs use different conventions, the accrual fractions in the denominator of the swap rate formula won’t match those used to project floating payments. Mismatching conventions between your model and the trade confirmation is one of the fastest ways to produce a rate that disagrees with the dealer’s quote. Confirm the convention in the ISDA documentation before building the cash flow schedule.
Interpolating Between Market Tenors
Market data rarely lines up perfectly with your swap’s payment dates. Spot rates are quoted at standard tenors like one, two, three, five, and ten years, but your swap might need a rate at 18 months or 7 years. Linear interpolation assumes the unknown rate falls on a straight line between the two nearest quoted rates:
Rn = R1 + [(tn − t1) ÷ (t2 − t1)] × (R2 − R1)
R1 and R2 are the known rates at maturities t1 and t2, and tn is the maturity you need. Express maturities in days for precision, and align business day adjustments with whatever convention the trade confirmation specifies. Linear interpolation is the industry default. Cubic spline and other curve-fitting methods exist for wider gaps or more demanding pricing, but linear works well for closely spaced tenors.
Amortizing and Non-Standard Notionals
The formula above assumes a constant notional principal throughout the swap’s life. Many real-world swaps don’t work that way. An amortizing swap has a notional that decreases over time, mirroring the declining balance of an underlying loan. When the notional varies by period, the simple formula breaks down. The general version weights each period’s discount factor by its specific notional:
Swap Rate = [Σ(Qi × DFi−1 × fi)] ÷ [Σ(Qi × DFi)]
Qi is the notional for each period, fi is the forward rate for that period, and DF is the discount factor. The fixed rate that balances this equation will differ from the par rate on a bullet swap of the same tenor, because the notional weighting shifts cash flows toward earlier periods. Accreting swaps, where notional grows, and roller-coaster structures, where it varies irregularly, follow the same principle. Whenever the notional isn’t flat, calculate period by period.
One More Adjustment for Bilateral Swaps
The par formula assumes no default risk on either side. That assumption holds for cleared swaps where a central counterparty guarantees performance. For bilateral, uncleared swaps, counterparty credit risk gets priced through a Credit Valuation Adjustment. CVA represents the present value of expected losses from the possibility that your counterparty defaults while owing you money. Dealers also apply a Debit Valuation Adjustment for their own default risk and a Funding Valuation Adjustment for the cost of funding uncollateralized positions.
These adjustments typically shift the quoted rate a few basis points off the theoretical par rate. For standard swaps between well-capitalized counterparties, CVA is small. For longer tenors or lower-rated counterparties, it can become large enough to move the economics of the trade. If you’re calculating a rate for a cleared swap, the par formula gives you the answer. If you’re pricing a bilateral trade and want to match a dealer quote exactly, the credit adjustments account for most of the residual difference.