Shear Moment Diagram Calculator

Shear Force and Bending Moment Diagram Calculator – Structural Analysis Tool * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); padding: 20px; line-height: 1.6; } .container { max-width: 1200px; margin: 0 auto; background: white; border-radius: 20px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); padding: 40px; } h1 { color: #333; text-align: center; margin-bottom: 10px; font-size: 2.5em; text-shadow: 2px 2px 4px rgba(0,0,0,0.1); } .subtitle { text-align: center; color: #666; margin-bottom: 30px; font-size: 1.1em; } .calculator-section { background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); padding: 30px; border-radius: 15px; margin-bottom: 30px; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .beam-type-selector { margin-bottom: 25px; } .beam-type-selector label { font-weight: bold; color: #333; display: block; margin-bottom: 10px; font-size: 1.1em; } .beam-type-selector select { width: 100%; padding: 12px; border: 2px solid #667eea; border-radius: 8px; font-size: 1em; background: white; } .input-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-bottom: 20px; } .input-group { display: flex; flex-direction: column; } .input-group label { font-weight: 600; margin-bottom: 8px; color: #333; font-size: 0.95em; } .input-group input { padding: 12px; border: 2px solid #ddd; border-radius: 8px; font-size: 1em; transition: border-color 0.3s; } .input-group input:focus { outline: none; border-color: #667eea; } .calculate-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 15px 40px; border: none; border-radius: 10px; font-size: 1.1em; font-weight: bold; cursor: pointer; width: 100%; margin-top: 20px; transition: transform 0.2s, box-shadow 0.2s; } .calculate-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4); } .result-section { background: white; padding: 30px; border-radius: 15px; margin-top: 20px; border: 3px solid #667eea; display: none; } .result-section.active { display: block; } .result-title { font-size: 1.5em; color: #667eea; margin-bottom: 20px; text-align: center; font-weight: bold; } .result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 20px; } .result-item { background: #f8f9fa; padding: 15px; border-radius: 10px; border-left: 4px solid #667eea; } .result-label { font-size: 0.9em; color: #666; margin-bottom: 5px; } .result-value { font-size: 1.3em; font-weight: bold; color: #333; } .diagram-container { background: white; border: 2px solid #ddd; border-radius: 10px; padding: 20px; margin-top: 20px; min-height: 300px; } .diagram-title { font-weight: bold; color: #333; margin-bottom: 15px; text-align: center; } canvas { width: 100%; max-width: 100%; height: auto; border: 1px solid #e0e0e0; border-radius: 5px; } .article-section { margin-top: 40px; padding: 30px; background: #f9f9f9; border-radius: 15px; } .article-section h2 { color: #667eea; margin-bottom: 15px; font-size: 2em; } .article-section h3 { color: #764ba2; margin-top: 25px; margin-bottom: 12px; font-size: 1.5em; } .article-section p { color: #555; margin-bottom: 15px; text-align: justify; } .article-section ul, .article-section ol { margin-left: 20px; margin-bottom: 15px; } .article-section li { color: #555; margin-bottom: 8px; } .formula-box { background: #fff; border-left: 4px solid #667eea; padding: 15px; margin: 20px 0; border-radius: 5px; font-family: 'Courier New', monospace; } .note-box { background: #fff3cd; border-left: 4px solid #ffc107; padding: 15px; margin: 20px 0; border-radius: 5px; }

⚙️ Shear Force and Bending Moment Diagram Calculator

Structural Analysis Tool for Simply Supported and Cantilever Beams

Simply Supported Beam with Point Load Cantilever Beam with Point Load Simply Supported Beam with UDL Cantilever Beam with UDL

📊 Analysis Results

Maximum Shear Force
Maximum Bending Moment
Reaction at Left Support (R₁)
Reaction at Right Support (R₂)
Shear Force Diagram (SFD)
Bending Moment Diagram (BMD)

Understanding Shear Force and Bending Moment Diagrams

Shear force and bending moment diagrams are fundamental tools in structural engineering used to analyze the internal forces and moments acting within a beam under various loading conditions. These diagrams provide critical information for designing safe and efficient structural members, ensuring they can withstand applied loads without failure.

What is Shear Force?

Shear force at any cross-section of a beam is the algebraic sum of all vertical forces acting on either side of that section. It represents the internal force that resists the tendency of one part of the beam to slide past an adjacent part. Shear force is typically measured in kilonewtons (kN) or pounds (lbs) and varies along the length of the beam depending on the applied loads and support reactions.

Shear Force Formula:
V(x) = ΣF_vertical (sum of all vertical forces to the left or right of section x)

What is Bending Moment?

Bending moment at any point along a beam is the algebraic sum of the moments of all forces acting on one side of that point about that point. It represents the internal moment that resists the tendency of the beam to bend. Bending moment causes tension on one side of the beam and compression on the other, and is measured in kilonewton-meters (kN·m) or pound-feet (lb·ft).

Bending Moment Formula:
M(x) = ΣM (sum of all moments about section x, including force × distance)

Types of Beam Configurations

1. Simply Supported Beam

A simply supported beam is supported at both ends, with one end typically having a pinned support (allowing rotation but preventing translation) and the other having a roller support (allowing both rotation and horizontal movement). This configuration is one of the most common in structural engineering.

  • Point Load: When a concentrated load acts at a specific point, the shear force diagram shows a sudden jump at the load location, while the bending moment diagram typically shows a triangular or peaked shape with maximum moment at or near the load position.
  • Uniformly Distributed Load (UDL): For a UDL across the entire span, the shear force diagram is linear (sloping), and the bending moment diagram is parabolic with maximum moment at mid-span.

2. Cantilever Beam

A cantilever beam is fixed at one end and free at the other. The fixed end provides both moment and force resistance, while the free end can deflect and rotate freely. Common examples include balconies, diving boards, and overhanging structures.

  • Point Load at Free End: The shear force remains constant along the beam length, while the bending moment increases linearly from zero at the free end to maximum at the fixed end.
  • UDL: The shear force varies linearly from zero at the free end to maximum at the fixed end, while the bending moment follows a parabolic curve with maximum value at the fixed support.

Sign Conventions

Understanding sign conventions is crucial for correctly interpreting shear force and bending moment diagrams:

  • Shear Force: Positive shear occurs when the left portion of the beam tends to move upward relative to the right portion. Negative shear is the opposite.
  • Bending Moment: Positive bending moment causes the beam to sag (tension at bottom, compression at top), also called sagging moment. Negative bending moment causes hogging (compression at bottom, tension at top).

Calculation Methodology

Simply Supported Beam with Point Load

For a simply supported beam of length L with a point load P at distance 'a' from the left support:

Reactions:
R₁ = P × (L – a) / L
R₂ = P × a / L

Maximum Shear Force: V_max = max(R₁, R₂)
Maximum Bending Moment: M_max = R₁ × a = P × a × (L – a) / L

Simply Supported Beam with UDL

For a uniformly distributed load w (kN/m) over the entire span L:

Total Load: W = w × L
Reactions: R₁ = R₂ = W / 2 = (w × L) / 2
Maximum Shear Force: V_max = W / 2
Maximum Bending Moment: M_max = (w × L²) / 8 (at mid-span)

Cantilever Beam with Point Load at Free End

For a cantilever beam of length L with point load P at the free end:

Fixed End Reaction: R = P
Fixed End Moment: M_fixed = P × L
Shear Force: V = P (constant throughout)
Maximum Bending Moment: M_max = P × L (at fixed end)

Cantilever Beam with UDL

For a uniformly distributed load w (kN/m) over the entire cantilever length L:

Total Load: W = w × L
Fixed End Reaction: R = w × L
Maximum Shear Force: V_max = w × L (at fixed end)
Maximum Bending Moment: M_max = (w × L²) / 2 (at fixed end)

Practical Applications

Shear force and bending moment diagrams are essential in various engineering applications:

  1. Structural Design: Determining the required size and material properties of beams, girders, and other structural members to safely carry design loads.
  2. Bridge Engineering: Analyzing bridge deck beams, girders, and supports under traffic loads, including both dead loads and live loads.
  3. Building Construction: Designing floor joists, roof beams, lintels, and other horizontal structural elements in residential and commercial buildings.
  4. Machine Design: Analyzing shafts, axles, and mechanical components subjected to bending loads in machinery and equipment.
  5. Aircraft Structures: Evaluating wing spars, fuselage frames, and other aircraft structural components under flight loads.
  6. Offshore Structures: Designing platform decks, pile foundations, and other marine structural elements subjected to wave and wind loads.

Important Design Considerations

Note: When designing structural members, engineers must consider not only the maximum bending moment and shear force but also:
  • Material properties (yield strength, modulus of elasticity)
  • Safety factors and load combinations
  • Deflection limits and serviceability requirements
  • Local buckling and lateral-torsional buckling
  • Fatigue and cyclic loading effects
  • Connection design and detailing

Relationship Between Load, Shear, and Moment

There are fundamental mathematical relationships between distributed load, shear force, and bending moment:

Load-Shear Relationship:
dV/dx = -w(x) (the slope of the shear diagram equals negative load intensity)

Shear-Moment Relationship:
dM/dx = V(x) (the slope of the moment diagram equals the shear force)

Integration Relationships:
V(x) = V₀ – ∫w(x)dx
M(x) = M₀ + ∫V(x)dx

Step-by-Step Calculation Process

  1. Identify Beam Type and Loading: Determine support conditions (simply supported, cantilever, fixed, etc.) and characterize all loads (point loads, distributed loads, moments).
  2. Calculate Support Reactions: Use equilibrium equations (ΣF_y = 0, ΣM = 0) to determine reactions at supports.
  3. Divide Beam into Segments: Identify critical points where loads change or act, dividing the beam into distinct segments.
  4. Calculate Shear Force: For each segment, calculate shear force by summing vertical forces to the left (or right) of any point.
  5. Draw Shear Force Diagram: Plot shear force values along the beam length, showing jumps at point loads and slopes under distributed loads.
  6. Calculate Bending Moment: For each segment, calculate moment by summing moments about any point from forces to the left (or right).
  7. Draw Bending Moment Diagram: Plot moment values, noting that maximum moment often occurs where shear force equals zero.
  8. Verify Results: Check that moment diagram slope equals shear force, and that boundary conditions are satisfied.

Common Mistakes to Avoid

  • Incorrect sign conventions leading to reversed diagram orientations
  • Forgetting to include support reactions in force summations
  • Not accounting for the direction of distributed loads
  • Miscalculating distances when determining moments
  • Failing to check equilibrium conditions as a verification step
  • Ignoring discontinuities at point load locations
  • Using inconsistent units throughout calculations

Advanced Topics

For more complex beam analysis scenarios, engineers may need to consider:

  • Continuous Beams: Beams with more than two supports, requiring moment distribution or matrix analysis methods
  • Frames and Portals: Combined beam and column systems with moment connections
  • Composite Beams: Members made from multiple materials with different elastic properties
  • Non-uniform Cross-sections: Beams with varying depth or width along their length
  • Dynamic Loading: Time-varying loads including impact, vibration, and seismic effects
  • Plastic Analysis: Considering material yielding and redistribution of moments beyond elastic limits

Software and Tools

While manual calculations and diagrams are essential for understanding beam behavior, modern structural engineering often employs sophisticated software tools for complex analyses. This calculator provides quick, accurate results for common beam configurations, serving as an excellent educational tool and preliminary design aid. For final structural designs, always consult relevant building codes and standards, and consider having critical structural members reviewed by a licensed professional engineer.

Conclusion

Mastering shear force and bending moment diagrams is fundamental for any structural engineer or student of engineering mechanics. These diagrams provide visual representations of internal forces and moments, enabling engineers to design safe, efficient, and economical structures. Whether you're designing a simple residential floor beam or analyzing a complex bridge structure, the principles of shear force and bending moment analysis remain central to structural design and analysis.

function updateLoadInputs() { var beamType = document.getElementById('beamType').value; var inputGrid = document.getElementById('inputGrid'); if (beamType === 'udl-simple' || beamType === 'udl-cantilever') { inputGrid.innerHTML = '
'; } else { inputGrid.innerHTML = '
'; } } function calculateShearMoment() { var beamType = document.getElementById('beamType').value; var beamLength = parseFloat(document.getElementById('beamLength').value); if (isNaN(beamLength) || beamLength <= 0) { alert('Please enter a valid beam length greater than 0'); return; } var maxShear, maxMoment, R1, R2; var shearPoints = []; var momentPoints = []; if (beamType === 'simplysupported') { var pointLoad = parseFloat(document.getElementById('pointLoad').value); var loadPosition = parseFloat(document.getElementById('loadPosition').value); if (isNaN(pointLoad) || pointLoad <= 0) { alert('Please enter a valid point load greater than 0'); return; } if (isNaN(loadPosition) || loadPosition beamLength) { alert('Please enter a valid load position between 0 and beam length'); return; } var a = loadPosition; var b = beamLength – loadPosition; R1 = (pointLoad * b) / beamLength; R2 = (pointLoad * a) / beamLength; maxShear = Math.max(Math.abs(R1), Math.abs(R2)); maxMoment = R1 * a; shearPoints = [ {x: 0, v: R1}, {x: a – 0.001, v: R1}, {x: a + 0.001, v: -R2}, {x: beamLength, v: -R2} ]; momentPoints = [ {x: 0, m: 0}, {x: a, m: maxMoment}, {x: beamLength, m: 0} ]; } else if (beamType === 'cantilever') { var pointLoad = parseFloat(document.getElementById('pointLoad').value); var loadPosition = parseFloat(document.getElementById('loadPosition').value); if (isNaN(pointLoad) || pointLoad <= 0) { alert('Please enter a valid point load greater than 0'); return; } if (isNaN(loadPosition) || loadPosition beamLength) { alert('Please enter a valid load position between 0 and beam length'); return; } R1 = pointLoad; R2 = 0; maxShear = pointLoad; maxMoment = pointLoad * loadPosition; shearPoints = [ {x: 0, v: 0}, {x: loadPosition – 0.001, v: 0}, {x: loadPosition + 0.001, v: pointLoad}, {x: beamLength, v: pointLoad} ]; momentPoints = [ {x: 0, m: 0}, {x: loadPosition, m: 0}, {x: beamLength, m: maxMoment} ]; } else if (beamType === 'udl-simple') { var udlIntensity = parseFloat(document.getElementById('udlIntensity').value); if (isNaN(udlIntensity) || udlIntensity <= 0) { alert('Please enter a valid UDL intensity greater than 0'); return; } var totalLoad = udlIntensity * beamLength; R1 = totalLoad / 2; R2 = totalLoad / 2; maxShear = R1; maxMoment = (udlIntensity * beamLength * beamLength) / 8; shearPoints = [ {x: 0, v: R1} ]; for (var i = 1; i <= 20; i++) { var x = (beamLength * i) / 20; var v = R1 – udlIntensity * x; shearPoints.push({x: x, v: v}); } momentPoints = [ {x: 0, m: 0} ]; for (var i = 1; i <= 20; i++) { var x = (beamLength * i) / 20; var m = R1 * x – (udlIntensity * x * x) / 2; momentPoints.push({x: x, m: m}); } } else if (beamType === 'udl-cantilever') { var udlIntensity = parseFloat(document.getElementById('udlIntensity').value); if (isNaN(udlIntensity) || udlIntensity <= 0) { alert('Please enter a valid UDL intensity greater than 0'); return; } var totalLoad = udlIntensity * beamLength; R1 = totalLoad; R2 = 0; maxShear = totalLoad; maxMoment = (udlIntensity * beamLength * beamLength) / 2; shearPoints = []; for (var i = 0; i <= 20; i++) { var x = (beamLength * i) / 20; var v = udlIntensity * x; shearPoints.push({x: x, v: v}); } momentPoints = []; for (var i = 0; i <= 20; i++) { var x = (beamLength * i) / 20; var m = (udlIntensity * x * x) / 2;

Leave a Comment