Price Elasticity of Supply Calculator

Price Elasticity of Supply Calculator body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; line-height: 1.6; color: #333; max-width: 800px; margin: 0 auto; padding: 20px; } .calculator-container { background: #f9fbfd; border: 1px solid #e1e4e8; border-radius: 8px; padding: 30px; margin-bottom: 40px; box-shadow: 0 4px 6px rgba(0,0,0,0.05); } .calculator-title { text-align: center; color: #2c3e50; margin-bottom: 25px; font-size: 24px; font-weight: 700; } .input-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 25px; } @media (max-width: 600px) { .input-grid { grid-template-columns: 1fr; } } .input-group { display: flex; flex-direction: column; } .input-group label { font-size: 14px; font-weight: 600; color: #555; margin-bottom: 8px; } .input-group input { padding: 12px; border: 1px solid #ccc; border-radius: 4px; font-size: 16px; transition: border-color 0.3s; } .input-group input:focus { border-color: #3498db; outline: none; } .btn-calculate { display: block; width: 100%; background-color: #2ecc71; color: white; border: none; padding: 15px; font-size: 18px; font-weight: bold; border-radius: 4px; cursor: pointer; transition: background-color 0.3s; } .btn-calculate:hover { background-color: #27ae60; } .result-section { margin-top: 30px; padding: 20px; background-color: #fff; border: 1px solid #e1e4e8; border-radius: 4px; display: none; } .result-header { font-size: 18px; color: #7f8c8d; text-align: center; margin-bottom: 10px; } .result-value { font-size: 42px; color: #2c3e50; text-align: center; font-weight: 800; margin-bottom: 10px; } .result-interpretation { text-align: center; font-size: 18px; font-weight: 600; color: #2980b9; padding: 10px; background: #f0f7fb; border-radius: 4px; } .article-content { background: #fff; padding: 20px; } .article-content h2 { color: #2c3e50; margin-top: 30px; border-bottom: 2px solid #ecf0f1; padding-bottom: 10px; } .article-content h3 { color: #34495e; margin-top: 25px; } .article-content p { margin-bottom: 15px; } .article-content ul { margin-bottom: 20px; padding-left: 20px; } .formula-box { background: #f8f9fa; padding: 15px; border-left: 4px solid #3498db; font-family: monospace; margin: 20px 0; overflow-x: auto; }
Price Elasticity of Supply (PES) Calculator
Price Elasticity of Supply (PES)
0.00
Interpretation
Calculation Method: Midpoint Formula (Arc Elasticity)
function calculatePES() { // 1. Get DOM elements by ID strictly matching the input tags var p1Input = document.getElementById('initialPrice'); var q1Input = document.getElementById('initialQty'); var p2Input = document.getElementById('newPrice'); var q2Input = document.getElementById('newQty'); var resultDiv = document.getElementById('resultOutput'); var valDiv = document.getElementById('pesValue'); var interpDiv = document.getElementById('pesInterpretation'); // 2. Parse values var P1 = parseFloat(p1Input.value); var Q1 = parseFloat(q1Input.value); var P2 = parseFloat(p2Input.value); var Q2 = parseFloat(q2Input.value); // 3. Validation if (isNaN(P1) || isNaN(Q1) || isNaN(P2) || isNaN(Q2)) { alert("Please enter valid numeric values for all fields."); return; } if (P1 < 0 || Q1 < 0 || P2 < 0 || Q2 < 0) { alert("Price and Quantity cannot be negative."); return; } // Prevent division by zero if prices are identical (no change in price) if (P1 === P2) { resultDiv.style.display = "block"; valDiv.innerHTML = "Undefined"; interpDiv.innerHTML = "Price did not change, elasticity cannot be calculated."; return; } // 4. Calculate using Midpoint Formula (Arc Elasticity) // % Change Q = (Q2 – Q1) / ((Q1 + Q2) / 2) // % Change P = (P2 – P1) / ((P1 + P2) / 2) var deltaQ = Q2 – Q1; var avgQ = (Q1 + Q2) / 2; var pctChangeQ = 0; if (avgQ !== 0) { pctChangeQ = deltaQ / avgQ; } else { // Edge case where both quantities are 0 pctChangeQ = 0; } var deltaP = P2 – P1; var avgP = (P1 + P2) / 2; var pctChangeP = deltaP / avgP; var pes = 0; if (pctChangeP !== 0) { pes = pctChangeQ / pctChangeP; } // 5. Interpret the result // Generally, supply elasticity is positive (Law of Supply). // If the result is negative, it's displayed as is, but standard PES is typically absolute or positive. // We will display the raw calculated value. var pesText = pes.toFixed(2); var interpretation = ""; // Determine Elasticity Class var absPes = Math.abs(pes); // Using absolute for classification logic, though supply is usually positive if (absPes === 0) { interpretation = "Perfectly Inelastic"; } else if (absPes 1) { interpretation = "Relatively Elastic"; } // Handle Perfectly Elastic (conceptually infinite, usually handled by P1=P2 logic above, but checking huge numbers) if (absPes > 999999) { pesText = "∞"; interpretation = "Perfectly Elastic"; } // 6. Update DOM valDiv.innerHTML = pesText; interpDiv.innerHTML = interpretation; resultDiv.style.display = "block"; // Scroll to result resultDiv.scrollIntoView({behavior: "smooth"}); }

What is Price Elasticity of Supply (PES)?

Price Elasticity of Supply (PES) is an economic metric that measures the responsiveness of the quantity supplied of a good or service to a change in its price. It helps businesses and economists understand how easily producers can increase or decrease their output when prices fluctuate in the market.

According to the Law of Supply, when the price of a product rises, suppliers usually increase the quantity supplied to maximize profits. PES quantifies exactly how much that quantity changes relative to the price change.

How the Calculation Works

This calculator uses the Midpoint Method (also known as Arc Elasticity). The Midpoint Method is preferred in economics because it provides consistent results regardless of whether the price rises or falls between the two points.

PES = (% Change in Quantity Supplied) / (% Change in Price)

Where:
% Change in Q = (Q2 – Q1) / ((Q1 + Q2) / 2)
% Change in P = (P2 – P1) / ((P1 + P2) / 2)

Interpreting Your Results

Once you calculate the PES value, it falls into one of these categories:

  • Elastic (PES > 1): Supply is very responsive to price changes. A small percentage increase in price leads to a larger percentage increase in supply. This is common for manufactured goods where production can be scaled up quickly.
  • Inelastic (PES < 1): Supply is not very responsive. A large price change leads to only a small change in quantity supplied. This often applies to agricultural products or housing, where it takes time to produce more units.
  • Unit Elastic (PES = 1): The percentage change in supply is exactly equal to the percentage change in price.
  • Perfectly Inelastic (PES = 0): Supply is fixed and cannot change regardless of price (e.g., land availability or tickets to a sold-out stadium).

Factors Affecting PES

Several factors influence whether supply is elastic or inelastic:

  • Spare Capacity: If a factory has idle machines, it can increase supply quickly (Elastic). If it is running at full capacity, increasing supply requires building new facilities (Inelastic).
  • Production Timeframe: Goods that take a long time to produce (like crops or complex electronics) generally have inelastic supply in the short run.
  • Stockpiles (Inventory): If a company has a large inventory of finished goods, they can respond immediately to price increases (Elastic).
  • Mobility of Factors of Production: If labor and capital can be easily moved to produce the good, supply is more elastic.

Example Calculation

Imagine a bakery sells 1,000 loaves of bread at $2.00. The market price rises to $2.50, and the bakery increases production to 1,500 loaves.

Using the calculator:
Initial Price: $2.00, New Price: $2.50
Initial Qty: 1,000, New Qty: 1,500
Result: PES = 1.80 (Elastic).
This means the bakery is highly responsive to price changes.

Leave a Reply

Your email address will not be published. Required fields are marked *