Skip to main content

What Is The Purpose Of A Shim?

by
Last updated on 4 min read

Shims are those super-thin, often tapered pieces—made from metal, composite, plastic, or wood—that fill gaps between parts. They make sure everything lines up right, stays level, or sits at the exact spacing needed without breaking the bank on fancy precision machining.

Quick Fix Summary: Need to level a cabinet, door, or machine mount? Slide in a pre-cut shim (metal or composite), tap it flush with a hammer, then fasten through it so screws clamp everything tight—no gaps left behind.

What happens when you actually use a shim?

At its core, a shim is all about mechanics: it takes up the slack when parts don’t quite fit perfectly. Instead of demanding every single component be machined to impossible tolerances, shims let assemblies come together smoothly. In woodworking and construction, they’re the secret weapon for straightening doors, windows, cabinets, and deck frames. Out in the industrial world—think cars, planes, heavy machinery—they handle thermal expansion, vibration, or plain old manufacturing quirks. And in software? A “shim” is just a compatibility layer that sneaks in between old and new code to keep things running.

Ready to use one? Here’s how

  1. Pick the right material and size. For outdoor decks, composite shims (fibre-reinforced) laugh in the face of rot and UV, while indoors, metal shims (aluminum 0.010–0.060 in) slide into place like a dream. Grab some calipers and measure twice before cutting.
  2. Mark and cut accurately. Wood shims? Set up a table saw with a fine-tooth blade, fence it to your taper, and use a push stick—OSHA insists on keeping hands at least 4 inches from the blade. Metal shims? Aviation snips or a horizontal band saw with coolant will do the trick.
  3. Dry-fit without adhesive. Slide the shim into the gap, tap it gently with a rubber mallet until it’s snug, then check for plumb with a 4-foot level.
  4. Fastener placement. Drill pilot holes through both the shim and the mating surface to avoid any nasty splits. Countersink screw heads by 1⁄16 inch so they don’t poke out and interfere with hinges or surfaces.
  5. Final torque and seal. Drive screws in a cross pattern for even pressure. If you’re working outside, a dab of exterior-grade construction adhesive will lock those shims in place against seasonal shifts.

When your shim fix falls short

  • Gap too large? Stack shims gradually (glue or clamp them together) to build up thickness without creating a wobbly mess. Keep the taper smooth so parts sit flat.
  • Shim keeps sliding out? A dab of construction adhesive or self-locking composite shims with serrated edges (0.032–0.125 in thick) will hold things in place.
  • Rust or corrosion creeping in? Ditch carbon steel for stainless-steel or polymer-coated shims—wet environments are no friend to plain old steel.

Stop problems before they start

Keep shims dry in an indoor bin; composites soak up less moisture than wood and keep their shape longer. Ordering in bulk? Ask for ASTM D6109 Class A composite shims (ASTM F2075-20) rated for -40 °F to 180 °F. And in software? Maintain a clear shim registry so the next developer knows which legacy APIs are wrapped and why.

Problem Quick Fix Material Where Used
Door frame out of plumb Tap composite shim behind hinge side Fiberglass composite 0.060 in Interior doors
Deck joist uneven Stack two tapered wood shims on top of each other Pressure-treated pine 0.125–0.250 in Outdoor decks
Machine base misaligned Insert stainless-steel shim, torque to spec 304 stainless 0.020 in Industrial mounts
Legacy API calls fail Deploy a shim library intercepting calls Javascript/Typescript shim Web apps

Sources: ASTM International defines composite shim standards; OSHA covers table saw safety distances; National Park Service durability data for outdoor lumber.

Edited and fact-checked by the TechFactsHub editorial team.
David Okonkwo
Written by

David Okonkwo holds a PhD in Computer Science and has been reviewing tech products and research tools for over 8 years. He's the person his entire department calls when their software breaks, and he's surprisingly okay with that.

How Do You Give Credit To Information On A Website?How Do You List A Minor On LinkedIn?