All courses › Machine Design
Machine Design: free practice, theory and problems
Real machine parts are rarely loaded by just one type of load at a time. A bolt may have both preload (tension) and bending from a slightly misaligned joint; a shaft may have both a bending moment from its own weight and torsion from the driving torque. Stress and sizing is about combining these contributions into one representative stress at the critical point, comparing it with the material's yield strength using a sensible safety factor, and accounting for the fact that sharp transitions and varying load can cause failure far below what a static tensile test would suggest.
Contents
1. Stress and sizing
What is it about?
Real machine parts are rarely loaded by just one type of load at a time. A bolt may have both preload (tension) and bending from a slightly misaligned joint; a shaft may have both a bending moment from its own weight and torsion from the driving torque. Stress and sizing is about combining these contributions into one representative stress at the critical point, comparing it with the material's yield strength using a sensible safety factor, and accounting for the fact that sharp transitions and varying load can cause failure far below what a static tensile test would suggest.
Concepts and formulas
- Combined axial and bending stress at an outer fiber: (same sign on the compression side, opposite on the tension side).
- Safety factor against yielding: . Typically 1.5–3 in machine design, higher for uncertain loads or serious consequences of failure.
- Stress concentration factor : at a hole, a fillet or a notch the local stress becomes , where is the stress without the concentration.
- Fatigue: under varying load, failure can occur at a stress well below , especially at notches. The endurance limit is the stress amplitude the material withstands for "infinitely" many cycles.
- Bolt preload: a torque wrench controls the preload force through , where for dry threads and is the nominal diameter.
How to solve the problems
- Identify every type of load acting at the critical section (axial, bending, torsion).
- Compute the stress contribution from each load separately, with the correct sign.
- Add contributions of the same type at the same point (for example axial and bending at the same fiber). At a notch: multiply the nominal stress by .
- Compare the total stress with and find , or check that is large enough.
- For variable load: consider whether fatigue may govern, not just static yielding.
Example
A short column with a rectangular cross-section of 40 × 30 mm carries an axial compressive force of 40 kN acting 15 mm outside the centroidal axis. mm³ and mm². Find the largest compressive stress.
- Axial stress: MPa.
- Bending moment from the eccentricity: Nmm Nm.
- Bending stress: MPa.
- On the side where both contributions are compressive, they add up: MPa.
Answer: MPa.
Common mistakes
- Forgetting the bending that appears when an axial force does not act exactly at the centroidal axis.
- Adding stresses from different points or different directions as if they were the same type.
- Applying to the wrong stress – it must multiply the nominal stress at the same point, not a different load.
- Believing a static safety factor is enough when the load actually varies cyclically.
Concepts in this part
2. Tolerances and fits
What is it about?
No part can be made to an exact dimension – everything has a manufacturing tolerance. Tolerances and fits are about controlling this inexactness on purpose: how much deviation from the nominal size is acceptable, and how two parts (typically a shaft in a hole) should fit together – with clearance, with an interference (press) fit, or with a mix of the two. The right choice decides whether a shaft spins freely in a bearing, whether a hub stays fixed on a shaft without a key, or whether manufacturing costs become unnecessarily high.
Concepts and formulas
- Tolerance (tolerance width) upper limit deviation lower limit deviation. A low IT grade (e.g. IT6) means a tighter, more expensive tolerance; a high IT grade (e.g. IT11) means a looser, cheaper tolerance.
- Hole-basis system (most common): the hole is given the letter H, with a lower deviation of – the smallest hole size is always the nominal size. The desired fit is chosen by changing the shaft's tolerance class.
- Shaft-basis system: the opposite – the shaft's upper deviation is (letter h), and the hole's tolerance class is chosen to give the desired fit. Used when several parts must fit on the same (purchased) shaft.
- Clearance hole size shaft size. Positive clearance means the shaft is smaller than the hole.
- Clearance fit: the clearance is always (smallest hole largest shaft). Interference fit: the clearance is always (smallest shaft largest hole, i.e. interference). Transition fit: the result can be either a little clearance or a little interference, depending on the actual sizes.
- Surface roughness : the arithmetic mean deviation of the surface profile, in µm. A lower means a finer (smoother) surface.
- Geometric dimensioning and tolerancing (GD&T) controls form, orientation and position in addition to just size.
How to solve the problems
- Read off the upper and lower limit deviations for the hole and the shaft (in µm, relative to the same nominal size).
- Compute the smallest and largest allowable size for each part: nominal size deviation.
- Smallest clearance smallest hole size largest shaft size. Largest clearance largest hole size smallest shaft size.
- If both are : clearance fit. If both are : interference fit. If one is positive and the other negative: transition fit.
- The average clearance (useful as an expected value) is .
Example
A hole is marked Ø30 H7 (upper deviation µm, lower deviation ), and the shaft is marked Ø30 js6 (deviation µm). Classify the fit and find the average clearance.
- Hole: – mm. Shaft: – mm.
- Largest clearance: µm.
- Smallest clearance: µm (negative, i.e. a bit of interference).
- Since one extreme is clearance and the other is interference, this is a transition fit.
- Average clearance: µm.
Answer: transition fit, with an average clearance of µm.
Common mistakes
- Mixing up the upper and lower deviations when computing the smallest/largest clearance.
- Believing an H-hole always gives a clearance fit. The type of fit depends on the shaft's tolerance class, not on the hole alone.
- Believing a low means a tight size tolerance. Surface roughness and size tolerance are two different things.
- Forgetting that negative clearance means interference (oversize), not a mistake in the calculation.
Concepts in this part
3. Machine elements
What is it about?
Machine elements are the reusable building blocks a machine designer assembles: gears and belts that transmit and change speed and torque, bolts and keys that hold parts together and transmit force, bearings that let shafts rotate with low friction and a long life, and springs that store energy or absorb motion. This unit collects the formulas that tie them together, so you can work through an entire power-transmission chain from motor to output shaft.
Concepts and formulas
- Gear ratio: (gears) (pulleys). For an ideal (lossless) transmission: .
- Power and torque: , with in rpm and in Nm giving in watts.
- Efficiency . For several stages in series: .
- Bearing life (ball bearing): million revolutions, where is the dynamic load rating and is the applied load. Roller bearings use the exponent .
- Spring stiffness . In parallel: . In series: .
- Bolt preload: a torque wrench gives , where for dry threads. Strength class X.Y gives roughly MPa and .
- Self-locking threads: a threaded joint is self-locking when the friction angle in the threads is larger than the lead angle, just like a block that stays put on an incline.
How to solve the problems
- Map out the power-transmission chain: which elements are in series, and what is the gear ratio at each stage?
- Compute speed stage by stage with , and subtract losses by multiplying the power by the efficiency of each stage.
- Find the torque from wherever you actually need it – do not assume the torque is the same throughout the chain.
- For individual elements (bearing, spring, bolt): plug the numbers directly into that element's own formula.
- Check the order of magnitude: a low speed must always come with a high torque (and vice versa) for the same power.
Example
A gearbox has two stages with ratios and , each with an efficiency of . The input rotates at 1450 rpm and receives 15 kW. Find the output torque.
- Output speed: rpm, so rad/s.
- Output power: W.
- Output torque: Nm.
Answer: Nm.
Common mistakes
- Assuming the torque is the same throughout the chain. It is the power (minus losses) that survives almost unchanged, not the torque.
- Forgetting the efficiency in multi-stage systems – the losses multiply, they do not add.
- Adding spring stiffnesses in series (should be in parallel), or the reverse.
- Using the ball-bearing exponent (3) for a roller bearing, which uses .
Concepts in this part
4. Bolted and welded joints
What is it about?
Almost all machines and steel structures are joined with bolts or welds. You must be able to check that a bolt can take the tension, that the bolts in a joint can take the shear, and that a weld is thick and long enough. The calculations are simple: force divided by area, compared with what the material can take.
Concepts and formulas
- The tensile stress area is the effective cross-section in the threads. Examples: M8: 36.6 mm², M10: 58.0 mm², M12: 84.3 mm², M16: 157 mm², M20: 245 mm², M24: 353 mm².
- Tensile stress in a bolt:
- Property class : the tensile strength is MPa and the yield strength . Class 8.8 gives MPa and MPa. Class 10.9 gives 1000 and 900 MPa.
- Shear in a bolted joint with bolts and one shear plane per bolt:
- Fillet weld: the throat thickness is about , where is the leg length. The stress in the weld is the force divided by the throat area:
- Safety factor: . It must exceed the requirement, often 1.5–3.
- Preload: the bolt is tightened so the joint is clamped together. Then it doesn't slip, and the bolt sees less alternating load (fatigue).
How to solve the problems
- Find the area: from the table for tension, the shank area for shear, for a weld.
- Compute the stress: force in N divided by area in mm² gives MPa.
- Compare with the yield strength and compute the safety factor.
Example
An M12 bolt of class 8.8 is loaded with 20 kN of tension.
- MPa.
- The yield strength is 640 MPa.
- The safety factor is . That is comfortably enough.
Common mistakes
- Using the full diameter instead of the stress area in the threads.
- Forgetting to divide by the number of bolts or shear planes.
- Using the leg instead of the throat in the weld stress.
- Mixing kN and N. Remember that N/mm² = MPa.
Concepts in this part
Example problems with solutions
Here are some of the problems in machine Design. In the app, calculation problems get new numbers every time, so you can practise until it sticks – and take a graded practice exam before the real one.
Stress and sizing: A bar with cross-section 100 mm² carries 10 kN in tension. What is the normal stress?
Answer: 100 MPa
N/mm² = 100 MPa.
Tolerances and fits: What kind of fit is H7/g6?
Answer: Clearance fit
g shafts are slightly smaller than the nominal size, so there is always clearance with an H hole.
Machine elements: A driving gear with 20 teeth drives a gear with 60 teeth. What happens to the speed?
Answer: It is reduced to 1/3
The ratio is . The speed goes down 3 times and the torque up roughly 3 times.
Bolted and welded joints: An M12 bolt (stress area 84.3 mm²) is loaded with 20 kN of tension. What is the tensile stress?
Answer: 237.248 MPa
MPa.
Matches these university courses
The content covers the syllabus found in engineering degrees, for example:
- MATS1600 (OsloMet)
- TMM4112 (NTNU)
- TMP220 (NMBU)