A gear is just a wheel with teeth. Mesh two together and they lock: turn one and the other must turn too — in the opposite direction, and at a speed set entirely by how many teeth each one has. That single fact is the whole of mechanical advantage. With gears you can trade speed for turning force (torque) and back again, which is why they sit inside clocks, bicycles, drills and cars. Scroll through and turn the cranks.
The blue driver turns at a constant speed. Its teeth push the green follower, which therefore spins the opposite way. The teeth are the same size on both (same module), so a gear's size is fixed by its tooth count. Change either count and watch the teeth stay perfectly meshed while the speeds shift: more teeth → slower turn.
Gear ratio = teeth_follower / teeth_driver. A ratio above 1 means the output turns slower than the input; below 1, faster. Adjacent meshed gears always spin opposite ways.
You can't get something for nothing: power = torque × speed is conserved across the mesh (ignoring friction). So whatever the gear ratio multiplies the torque by, it divides the speed by the same amount. A small gear driving a big one is a reduction: the big gear turns slowly but with a big twisting force — exactly what a car needs to pull away, or a bike needs to climb a hill.
Drag below 1.00 to overdrive (faster but weaker output). Notice the power readout never changes: torque up means speed down, every time.
String several gears in a line and the ratios multiply. Here a small driver turns a middle gear which turns a large output gear. The middle one is an idler: toggle it and you'll see it flips the output's direction but leaves the overall ratio unchanged — only the first and last tooth counts set the speed ratio. This is how a bike's gears, a clock's wheel train, and a car's gearbox build big reductions from modest gears.
Train ratio = teeth_last / teeth_first. Gears in between change direction (an even number of meshes ⇒ output same way as input, odd ⇒ opposite) but cancel out of the ratio.