instant: A closed-form calculation; a hosted run may take up to 2 seconds.
Formula
Where
Forward exchange rate forward_rate
Spot exchange rate: units of the quote currency per unit of the base currency spot
What 1 of the quote currency grows to over T at its interest rate
What 1 of the base currency grows to over T at its interest rate
Horizon, in years years
An interest rate per year, compounded as the convention says
Compounding periods in a year frequency
Expected spot rate at the horizon expected_spot
Inflation rate of the quote currency quote_inflation
Inflation rate of the base currency base_inflation
The exchange rate at which a basket costs the same in both currencies ppp_rate
Price of the basket, or the price level, in the quote currency
Price of the basket, or the price level, in the base currency
Real interest rate
Nominal interest rate of the quote currency quote_rate
Nominal interest rate of the base currency base_rate
Real exchange rate real_exchange_rate
Change in the real exchange rate real_change
Change in the spot rate spot_change
Each symbol's field is named beside it; the inputs and outputs, with their units and bounds, are under Variables, and the citations give each formula's source.
Variables
Rates, returns and yields are decimals: 0.05 is five percent. Bounds in brackets include their end; in parentheses they exclude it.
Inputs
Forward rate by covered parity (covered_interest_parity): 7 inputs
Inputs of the calculation covered_interest_parity
Name
Unit
Bounds
Description
Spotspotratio · [1e-06, 1e+06]
ratio
[1e-06, 1e+06]
Spot exchange rate, in units of the quote currency per unit of the base currency
Quote ratequote_raterate · [-0.05, 1]
rate
[-0.05, 1]
Nominal interest rate of the quote currency per year
Base ratebase_raterate · [-0.05, 1]
rate
[-0.05, 1]
Nominal interest rate of the base currency per year
Yearsyearsyears · (0, 10]
years
(0, 10]
Horizon in years
Compoundingcompoundingtext
text
How both rates compound over the horizon
Frequencyfrequencytext
text
Compounding frequency of periodic rates
Calculationcalculationtext
text
Forward rate by covered parity
Expected spot by uncovered parity (uncovered_interest_parity): 7 inputs
Inputs of the calculation uncovered_interest_parity
Name
Unit
Bounds
Description
Spotspotratio · [1e-06, 1e+06]
ratio
[1e-06, 1e+06]
Spot exchange rate, in units of the quote currency per unit of the base currency
Quote ratequote_raterate · [-0.05, 1]
rate
[-0.05, 1]
Nominal interest rate of the quote currency per year
Base ratebase_raterate · [-0.05, 1]
rate
[-0.05, 1]
Nominal interest rate of the base currency per year
Yearsyearsyears · (0, 10]
years
(0, 10]
Horizon in years
Compoundingcompoundingtext
text
How both rates compound over the horizon
Frequencyfrequencytext
text
Compounding frequency of periodic rates
Calculationcalculationtext
text
Expected spot by uncovered parity
Expected spot by relative purchasing power (relative_ppp): 5 inputs
Inputs of the calculation relative_ppp
Name
Unit
Bounds
Description
Calculationcalculationtext
text
Expected spot by relative purchasing power
Spotspotratio · [1e-06, 1e+06]
ratio
[1e-06, 1e+06]
Spot exchange rate, in units of the quote currency per unit of the base currency
Quote inflationquote_inflationrate · [-0.2, 1]
rate
[-0.2, 1]
Inflation per year in the quote currency's economy
Base inflationbase_inflationrate · [-0.2, 1]
rate
[-0.2, 1]
Inflation per year in the base currency's economy
Yearsyearsyears · (0, 10]
years
(0, 10]
Horizon in years
Exchange rate by absolute purchasing power (absolute_ppp): 4 inputs
Inputs of the calculation absolute_ppp
Name
Unit
Bounds
Description
Calculationcalculationtext
text
Exchange rate by absolute purchasing power
Quote pricequote_pricemoney · [0.01, 1e+07]
money
[0.01, 1e+07]
Basket's price in the quote currency
Base pricebase_pricemoney · [0.01, 1e+07]
money
[0.01, 1e+07]
Basket's price in the base currency
Spotspotratio · [1e-06, 1e+06]
ratio
[1e-06, 1e+06]
Spot exchange rate, in units of the quote currency per unit of the base currency
Real rates and the expected change (international_fisher): 5 inputs
Inputs of the calculation international_fisher
Name
Unit
Bounds
Description
Calculationcalculationtext
text
Real rates and the expected change
Quote ratequote_raterate · [-0.05, 1]
rate
[-0.05, 1]
Nominal interest rate of the quote currency per year
Base ratebase_raterate · [-0.05, 1]
rate
[-0.05, 1]
Nominal interest rate of the base currency per year
Quote inflationquote_inflationrate · [-0.2, 1]
rate
[-0.2, 1]
Inflation per year in the quote currency's economy
Base inflationbase_inflationrate · [-0.2, 1]
rate
[-0.2, 1]
Inflation per year in the base currency's economy
Real exchange rate and its change (real_exchange_rate): 7 inputs
Inputs of the calculation real_exchange_rate
Name
Unit
Bounds
Description
Calculationcalculationtext
text
Real exchange rate and its change
Spotspotratio · [1e-06, 1e+06]
ratio
[1e-06, 1e+06]
Spot exchange rate, in units of the quote currency per unit of the base currency
Run the model on your own inputs, starting from its example. Rates are decimals: 0.05 is five percent. The run goes to the pyeconomics API on this site: your values travel only in the request, and nothing is stored.
Exchange rates are in units of the quote currency per unit of the base currency.
Interest parity compares money-market investments of equal risk, with both rates compounded the same way over the horizon.
Relative PPP and the international Fisher effect compound annually; the Fisher effect is over one year.
Limitations
Results are the formulas' outputs for the inputs given, not forecasts or trading advice.
Covered interest parity holds up to transaction costs and credit; since 2008 a persistent cross-currency basis has opened gaps the formula does not show.
Uncovered interest parity and purchasing power parity fail empirically over short horizons: high-rate currencies tend not to depreciate as uncovered parity predicts, and real exchange rates deviate from PPP for years. Read their outputs as benchmarks.
Absolute PPP needs the same basket in both economies; a spot rate more than 101 times the PPP rate raises DomainError.
Evidence
Status: standard. Textbook consensus, such as bond duration or the CAPM formula.
Every model declares one status: standard (textbook consensus), practitioner (a widely used convention), contested (under active debate), rejected (failed out of sample) or historical (a superseded methodology).
Syllabus
The 2027 CFA® Program's topic areas this model relates to, as factual tags. Each links to CFA Institute's page for its level; pyeconomics holds none of the curriculum's text.
Borio, C., McCauley, R. N., McGuire, P. and Sushko, V. (2016). Covered interest parity lost: understanding the cross-currency basis. BIS Quarterly Review, September 2016. https://www.bis.org/publ/qtrpdf/r_qt1609e.htm (Section "A framework" and Box A (the covered parity condition))
Fama, E. F. (1984). Forward and Spot Exchange Rates. Journal of Monetary Economics, 14(3), 319-338. doi:10.1016/0304-3932(84)90046-1 (The regressions of spot changes on the forward premium)
Changelog
Version 1: First version.
Related models
Forward prices and valuesForward prices by cost of carry, the value of an existing forward, and forward exchange rates by covered…Derivatives
Public debt dynamicsThe path of debt to GDP from an initial ratio and paths of the effective interest rate, nominal growth and…Macroeconomics
Neutral rate of interestr* from the New York Fed's Laubach-Williams and Holston-Laubach-Williams estimates, the SEP's longer-run…Macroeconomics
Okun's lawOkun's law estimated in its gap form (the output gap on the unemployment gap) and its first-difference form…Macroeconomics