This calculator helps you convert amounts between Canadian Dollars (CAD) and United States Dollars (USD) using the current exchange rate. Understanding exchange rates is crucial for travelers, businesses involved in international trade, and individuals sending money across borders.
Understanding Exchange Rates
The exchange rate between the Canadian Dollar (CAD) and the United States Dollar (USD) fluctuates based on various economic factors, including interest rates, inflation, political stability, and trade balances between the two countries. A rate of 1 CAD to 0.75 USD means that one Canadian Dollar is equivalent to 0.75 United States Dollars.
When to use this calculator:
Planning a trip to the United States or Canada and want to know how much your money is worth in the other currency.
Engaging in online shopping from a Canadian or American retailer.
Receiving or sending payments in a different currency.
Monitoring your investments that are denominated in either CAD or USD.
For example, if the current exchange rate is 1 CAD = 0.75 USD, and you have 100 CAD, you would have 75 USD (100 * 0.75). Conversely, if you have 100 USD and the rate is 1 CAD = 0.75 USD, you would have approximately 133.33 CAD (100 / 0.75).
function convertCADtoUSD() {
var amountInput = document.getElementById("amount");
var exchangeRateInput = document.getElementById("exchangeRate");
var resultDiv = document.getElementById("result");
var amount = parseFloat(amountInput.value);
var exchangeRate = parseFloat(exchangeRateInput.value);
if (isNaN(amount) || isNaN(exchangeRate) || amount < 0 || exchangeRate <= 0) {
resultDiv.innerHTML = "Please enter valid positive numbers for amount and a positive exchange rate.";
return;
}
var convertedAmount = amount * exchangeRate;
resultDiv.innerHTML = "" + amount + " CAD is equal to " + convertedAmount.toFixed(2) + " USD";
}
function convertUSDtoCAD() {
var amountInput = document.getElementById("amount");
var exchangeRateInput = document.getElementById("exchangeRate");
var resultDiv = document.getElementById("result");
var amount = parseFloat(amountInput.value);
var exchangeRate = parseFloat(exchangeRateInput.value);
if (isNaN(amount) || isNaN(exchangeRate) || amount < 0 || exchangeRate <= 0) {
resultDiv.innerHTML = "Please enter valid positive numbers for amount and a positive exchange rate.";
return;
}
var convertedAmount = amount / exchangeRate;
resultDiv.innerHTML = "" + amount + " USD is equal to " + convertedAmount.toFixed(2) + " CAD";
}
.calculator-container {
font-family: sans-serif;
border: 1px solid #ddd;
padding: 20px;
border-radius: 8px;
max-width: 600px;
margin: 20px auto;
background-color: #f9f9f9;
}
.calculator-container h2 {
text-align: center;
color: #333;
margin-bottom: 15px;
}
.calculator-container .input-section,
.calculator-container .button-section {
margin-bottom: 15px;
display: flex;
flex-direction: column;
gap: 10px;
}
.calculator-container label {
font-weight: bold;
color: #555;
}
.calculator-container input[type="number"] {
padding: 10px;
border: 1px solid #ccc;
border-radius: 4px;
width: calc(100% – 22px); /* Account for padding and border */
}
.calculator-container button {
padding: 10px 15px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
transition: background-color 0.3s ease;
}
.calculator-container button:hover {
background-color: #0056b3;
}
#result {
margin-top: 20px;
padding: 15px;
background-color: #e9ecef;
border-radius: 4px;
text-align: center;
font-size: 1.1em;
color: #333;
}
.explanation-section {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid #eee;
}
.explanation-section h3 {
color: #444;
margin-bottom: 10px;
}
.explanation-section p,
.explanation-section ul {
color: #666;
line-height: 1.6;
}
.explanation-section ul {
padding-left: 20px;
}