CFM Flow Rate Calculator
This calculator helps you determine the airflow in Cubic Feet per Minute (CFM) based on the velocity of the air and the cross-sectional area of the duct or opening. CFM is a standard unit of measurement for airflow, commonly used in HVAC (Heating, Ventilation, and Air Conditioning) systems, industrial processes, and fan performance evaluation.
Air Velocity (FPM):
Duct Cross-Sectional Area (sq ft):
Calculate CFM
function calculateCFM() {
var airVelocity = parseFloat(document.getElementById("airVelocity").value);
var ductArea = parseFloat(document.getElementById("ductArea").value);
var resultDiv = document.getElementById("result");
resultDiv.innerHTML = ""; // Clear previous results
if (isNaN(airVelocity) || isNaN(ductArea) || airVelocity < 0 || ductArea < 0) {
resultDiv.innerHTML = "Please enter valid positive numbers for both Air Velocity and Duct Area.";
return;
}
// CFM = Air Velocity (FPM) * Duct Area (sq ft)
var cfm = airVelocity * ductArea;
resultDiv.innerHTML = "Calculated Airflow:
" + cfm.toFixed(2) + " CFM ";
}
.calculator-container {
font-family: sans-serif;
border: 1px solid #ccc;
padding: 20px;
border-radius: 8px;
max-width: 500px;
margin: 20px auto;
background-color: #f9f9f9;
}
.calculator-container h2 {
text-align: center;
margin-bottom: 20px;
color: #333;
}
.input-section {
margin-bottom: 15px;
display: flex;
align-items: center;
justify-content: space-between;
}
.input-section label {
flex-basis: 40%;
margin-right: 10px;
font-weight: bold;
color: #555;
}
.input-section input {
flex-basis: 60%;
padding: 8px;
border: 1px solid #ccc;
border-radius: 4px;
box-sizing: border-box;
}
button {
display: block;
width: 100%;
padding: 10px;
background-color: #007bff;
color: white;
border: none;
border-radius: 4px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.3s ease;
}
button:hover {
background-color: #0056b3;
}
.result-section {
margin-top: 20px;
padding: 15px;
background-color: #e9ecef;
border: 1px solid #ced4da;
border-radius: 4px;
text-align: center;
}
.result-section p {
margin: 0;
font-size: 1.1em;
color: #333;
}