In the automotive world, horsepower and torque are the two most common metrics used to measure engine performance. While they are related, they represent different physical properties of an engine's output.
The Relationship Formula
The mathematical relationship between horsepower, torque, and RPM is constant for all internal combustion engines. The formula used by this calculator is:
Torque (lb-ft) = (Horsepower × 5,252) / RPM
Why 5,252?
The number 5,252 is a constant derived from the definition of horsepower. One horsepower is defined as 33,000 foot-pounds of work per minute. Because torque is measured in lb-ft and RPM is a circular measurement, we use 33,000 divided by 2π (6.28318) to arrive at approximately 5,252. Interestingly, this means that horsepower and torque are always equal at exactly 5,252 RPM.
Calculation Examples
Example 1 (Sports Car): An engine producing 450 HP at 6,500 RPM.
(450 × 5,252) / 6,500 = 363.6 lb-ft of torque.
Example 2 (Diesel Truck): An engine producing 300 HP at 2,200 RPM.
(300 × 5,252) / 2,200 = 716.2 lb-ft of torque.
Torque vs. Horsepower: What's the Difference?
Think of torque as the "work" or the initial "grunt" that gets a vehicle moving, while horsepower is the "rate" at which that work is performed. In racing terms: Torque is what gets you off the line, and horsepower is what keeps you fast at the end of the straight.
function calculateTorque() {
var hp = document.getElementById("hpInput").value;
var rpm = document.getElementById("rpmInput").value;
var resultDiv = document.getElementById("torqueResult");
var torqueVal = document.getElementById("torqueVal");
var explanation = document.getElementById("explanationText");
if (hp === "" || rpm === "" || hp <= 0 || rpm <= 0) {
alert("Please enter valid positive numbers for Horsepower and RPM.");
return;
}
var torque = (hp * 5252) / rpm;
var formattedTorque = torque.toFixed(2);
torqueVal.innerText = formattedTorque + " lb-ft";
resultDiv.style.display = "block";
var insight = "";
if (rpm < 5252) {
insight = "At " + rpm + " RPM (below 5,252), your torque value will always be higher than your horsepower value.";
} else if (Math.round(rpm) === 5252) {
insight = "At exactly 5,252 RPM, horsepower and torque are always equal!";
} else {
insight = "At " + rpm + " RPM (above 5,252), your horsepower value will always be higher than your torque value.";
}
explanation.innerText = insight;
}