Free embeddable engineering calculators for course pages, LMS modules and documentation
Put a working calculator inside your own page. Copy the code for a tool below, paste it as HTML, and your readers can run the calculation without leaving your page.
Live example
This is the Press Fit Calculator as an embed, with the credit line the code adds below it.
Press Fit Calculator by MegaCalc
The code for this example
<iframe src="https://megacalc.org/embed/press-fit-calculator" width="100%" height="520" loading="lazy" title="Press Fit Calculator — MegaCalc" style="border:1px solid #283039;border-radius:8px"></iframe>
<p style="font:13px system-ui,sans-serif;margin:6px 0 0"><a href="https://megacalc.org/calculators/press-fit-calculator">Press Fit Calculator</a> by MegaCalc</p>What you get
- A working tool.The embed is the calculator itself, not a picture of it. Readers enter their own values, which are processed in their browser and are not sent to MegaCalc’s servers.
- It stays current. The embed loads from megacalc.org each time your page opens, so a correction to a calculator reaches your page without any change on your side.
- No account, key or fee. There is nothing to sign up for.
- A plain frame.The embed shows the tool’s name, the tool, and a small “Powered by MegaCalc” link to the full calculator page. The site’s menus, footer and cookie banner are left out.
- No ad slots in the embed. The embedded view has no ad slots, and advertising is switched off across MegaCalc today.
How to embed a calculator
- Copy the code.Press “Copy embed code” on a tool below. Every calculator page on MegaCalc also has an “Embed this calculator” button that gives the same code for that tool.
- Paste it as HTML. In a learning management system, open the page or module editor and switch to its HTML or source-code view before pasting; pasted into the normal text view, the code shows up as text. In a site builder, use a custom HTML or embed block. In Markdown documentation, paste it where raw HTML is allowed.
- Set the height. The frame is as wide as its column and 520 pixels tall. A tool with charts or long tables may need more: change
height="520"in the code.
Some platforms remove iframes or allow them only from approved sites. If the tool does not appear after you save, ask your administrator whether megacalc.org can be allowed, or link to the calculator instead.
The last line of the code is a credit: the tool’s name, linked to its full page, followed by “by MegaCalc”. It is appreciated but optional. Remove it if it does not suit your page.
Embeddable tools by course
These 24 tools are a starting set. For any other calculator, open its page from the calculator index and use its embed button.
Control systems
Root Locus Plotter
Plot how closed-loop poles move as gain K varies; interactive K slider shows closed-loop poles, open-loop poles, and zeros
Bode Plot Generator
Generate interactive Bode plots (magnitude and phase) from transfer function coefficients with gain margin, phase margin, and crossover frequencies
Pole-Zero Map Calculator
Plot the poles and zeros of a transfer function G(s) = N(s)/D(s) on the s-plane, with each root's multiplicity, natural frequency and damping ratio, and the stability of G(s)
Steady-State Error Calculator
Steady-state error of a unity-feedback loop for step, ramp and parabolic inputs, with the system type and Kp, Kv and Ka, after checking that the closed loop is stable
Thermodynamics and HVAC
Steam Tables — Interactive Reference
Interactive IAPWS-IF97 steam tables: saturated water by temperature and by pressure, and superheated steam, with internal energy. Searchable and filterable.
Water / Steam Properties Calculator
Enter any two independent properties (T, P, v, h, s, u, x) to get the IAPWS-IF97 state of water and steam: compressed liquid, saturated liquid, mixture or vapor, superheated or supercritical — the values a steam table lists, with no interpolation between rows
R-134a Refrigerant Tables Reference
Saturated and superheated R-134a property tables. Filter by temperature, select pressure for superheated region.
Psychrometric Calculator
Humidity ratio, dew point, wet-bulb temperature, enthalpy and specific volume of moist air from dry-bulb temperature, relative humidity and pressure, using the ASHRAE 2017 equations
Superheat & Subcooling Calculator
Superheat and subcooling from each line's pressure (gauge or absolute) and temperature, for R-410A (dew and bubble lines), R-134a and ammonia, using their published equations of state
Machine design
Press Fit Calculator
Calculate interface pressure, hub hoop stress, and assembly force for press-fit shaft-hub connections using Lame's equations
ISO 286 Fits & Tolerances Calculator
Shaft-hole fit calculator using ISO 286 IT grades. Enter H7/f6, H7/k6, H7/p6 etc. to get hole/shaft limits, clearance/interference, and fit type.
Shaft Design Calculator
Estimate solid and hollow shaft diameter under combined bending and torsion using a static maximum-shear model
Mechanics of materials
Beam Bending Calculator
Calculate maximum deflection, bending moment, and reactions for simply supported, cantilever, and fixed-fixed beams
Mohr's Circle Calculator
Calculate principal stresses, maximum shear stress, and principal angle from a 2D stress state
Fluid mechanics
Reynolds Number Calculator
Calculate Reynolds number and classify flow as laminar, transitional, or turbulent with common fluid presets
Moody Chart Calculator
Calculate Darcy friction factor from Reynolds number and relative roughness using Colebrook-White and Swamee-Jain
Introductory statistics
Normal Distribution Calculator
Compute P(X < x), P(X > x), P(a < X < b), z-scores, and inverse normal with an interactive bell curve
Confidence Interval Calculator
Compute confidence intervals using z or t distribution with margin of error, SE, and visual interval bar
Linear Regression Calculator
Simple linear regression with slope, intercept, R², adjusted R², residuals, predictions, and scatter/residual plots
General chemistry
Molarity Calculator
Calculate the molarity (molar concentration) of a solution from the number of moles of solute and the volume of solution in liters.
Solution Dilution Calculator
Calculate stock solution volume and the idealized solvent amount for a target concentration and final volume using C₁V₁ = C₂V₂.
Titration Calculator
Calculate the unknown concentration of an acid or base from titration data using the equivalence-point relationship.
Business finance
NPV / IRR Calculator
Enter initial investment and annual cash flows to compute NPV, IRR (bisection), payback period, and discounted payback. NPV vs discount rate chart.
Break-Even Calculator
Fixed costs, variable cost per unit, and selling price → break-even quantity, revenue, contribution margin, and margin of safety with cost/revenue chart.
Terms for embeds
You may embed any MegaCalc calculator with the embed code, at no cost, on personal, course and commercial pages; the credit line is optional. Do not cover the tool’s name or the MegaCalc link inside the frame or present the tool as your own work; the Terms of Service apply, and embeds are provided as they are, with no guarantee of availability.