Working IC Engine.
Render: …A real-time 3D model of a four-stroke petrol engine. Watch the pistons, connecting rods, crankshaft and valves move through intake → compression → power → exhaust, with spark and combustion. Drag to orbit; everything is driven by exact slider-crank geometry.
⚙️
Your browser doesn't support the WebGPU or WebGL graphics needed for the live 3D engine. Try the latest Chrome, Edge, Firefox or Safari on a device with hardware acceleration enabled.
Cool blue particles are the incoming air–fuel charge; hot orange/grey particles are the exhaust leaving through the header. Shown at a fraction of real engine speed so the cycle stays visible. One finger scrolls the page; two fingers orbit the model.
Cycle diagram — cylinder 1
Piston position, valve lift and (illustrative) cylinder pressure across the full 720° four-stroke cycle. The cursor tracks the live animation.
How a four-stroke engine works
The four strokes (720° of crankshaft)
A four-stroke engine completes one power cycle every two crankshaft revolutions. Intake: the piston descends and the intake valve opens, drawing in air and fuel. Compression: both valves close and the rising piston squeezes the mixture. Power: the spark plug ignites it and expanding gas drives the piston down. Exhaust: the piston rises again and the exhaust valve opens to expel burnt gas.
Why the motion is exact
Piston height follows the slider-crank relation y = r·cos θ + √(L² − r²·sin²θ), where r is the crank radius (half the stroke) and L is the connecting-rod length. Every part is positioned from a single crank angle θ, so the model is geometrically exact rather than physically simulated.
Where the gases flow
The intake manifold (left) feeds the air–fuel charge down its runners and past the intake valve into the cylinder — shown as the cool blue stream during the intake stroke. After combustion, the rising piston pushes burnt gas past the exhaust valve into the exhaust header (right), which collects every cylinder into one pipe and out the tailpipe — the hot orange stream. The overhead camshafts spin at half crank speed, their lobes pressing each poppet valve open against its spring at the right moment.
Inline-4 firing order
In the four-cylinder mode the cylinders fire in the common 1-3-4-2 order — one power stroke every 180° of crankshaft rotation — so the engine delivers smooth, overlapping power. Pistons 1 and 4 rise and fall together, opposite to 2 and 3.
Explore it your way
Exploded view separates every part with labels so you can see how the assembly fits together. Stop-motion — pause, then drag the crank-angle slider or step stroke-by-stroke — freezes any instant of the 720° cycle for close inspection, and Fullscreen fills the screen for presentations.
FAQ
Frequently Asked Questions
What are the four strokes of an IC engine?
What is the firing order of an inline-four engine?
How does a piston and crankshaft turn up-and-down motion into rotation?
What is the difference between a two-stroke and a four-stroke engine?
Does this engine simulation run on my device?
Related Calculators
Tips
- →Drag to orbit, scroll to zoom, and use the RPM slider to speed the engine up.
- →Watch the blue charge enter through the intake runners and the orange exhaust leave through the header.
- →Hit Exploded to pull the parts apart with labels; turn Cutaway off for the solid block.
- →Pause and drag the Crank angle slider (or Prev/Next stroke) to step through the cycle frame by frame.
- →Use Fullscreen for a big view; switch a single cylinder vs inline-4 to compare firing.