Calculate the final purity and mass of your metal melds.
Primary Base Metal
Additive / Scrap Metal
Total Meld Weight0.00 kg
Resulting Composition0.00 %
Understanding the Metallurgy Meld Calculation
A meld calculator is an essential tool for foundry workers, hobbyist blacksmiths, and material scientists. When melting two different quantities of metal with varying purity levels or alloying elements, you cannot simply average the percentages. You must calculate the weight of the pure element within each mass to find the final resulting concentration.
The Meld Formula
The calculation follows the Law of Conservation of Mass. To find the resulting purity ($P_{final}$), we use the weighted average formula:
Imagine you have 50 kg of 99.9% pure Copper and you want to "meld" it with 15 kg of a copper-nickel scrap that only contains 70% Copper.
Step 1: Calculate pure copper in Base: 50 * 0.999 = 49.95 kg
Step 2: Calculate pure copper in Additive: 15 * 0.70 = 10.5 kg
Step 3: Total Copper: 49.95 + 10.5 = 60.45 kg
Step 4: Total Mass: 50 + 15 = 65 kg
Final Purity: 60.45 / 65 = 93.0% Copper
Why Purity Math Matters
In casting, even a 1% deviation in the meld composition can significantly alter the physical properties of the finished product. This includes melting point, tensile strength, and corrosion resistance. Using a precision meld calculator ensures your alloy meets the specific grading requirements for industrial standards.
function calculateMeld() {
var m1 = parseFloat(document.getElementById('baseMass').value);
var p1 = parseFloat(document.getElementById('basePurity').value);
var m2 = parseFloat(document.getElementById('addMass').value);
var p2 = parseFloat(document.getElementById('addPurity').value);
if (isNaN(m1) || isNaN(p1) || isNaN(m2) || isNaN(p2)) {
alert("Please fill in all fields with valid numbers.");
return;
}
if (p1 > 100 || p2 > 100) {
alert("Purity percentage cannot exceed 100%.");
return;
}
// Calculation Logic
var totalMass = m1 + m2;
var massOfPureElement1 = m1 * (p1 / 100);
var massOfPureElement2 = m2 * (p2 / 100);
var totalPureElement = massOfPureElement1 + massOfPureElement2;
var finalPurityPercentage = (totalPureElement / totalMass) * 100;
// Display Results
document.getElementById('finalWeight').innerText = totalMass.toFixed(2) + " kg";
document.getElementById('finalPurity').innerText = finalPurityPercentage.toFixed(3) + " %";
var msg = "";
if (finalPurityPercentage > p1) {
msg = "The meld has successfully enriched the primary metal composition.";
} else if (finalPurityPercentage < p1) {
msg = "The meld has diluted the primary metal purity.";
} else {
msg = "The meld composition remains stable.";
}
document.getElementById('meldMessage').innerText = msg;
document.getElementById('meldResult').style.display = 'block';
}