If you’ve ever stared down a line of project components, wondering why the plastic casing you ordered doesn’t fit quite right—too tight to slide on, too loose to hold securely, or forcing you to hack away at edges just to get it installed—you know how much a wrong size can derail even the most well-planned build. As a plastic casing supplier, I’ve seen this mistake happen at every stage: from a hobbyist putting together their first IoT sensor to an engineer rolling out 10,000 units of a medical device, and it almost always comes down to skipping a few key details beyond just “measure my part.” Let’s walk through what actually goes into picking the right size, no matter how big or small your project is. Plastic Casing

First, let’s bust the biggest myth I hear from new customers: “I just need to measure the part that goes inside the casing, right?” Sort of, but not exactly. Internal dimensions (the space inside the casing) matter, but external ones matter too—especially if your design has to fit into a larger assembly, panel, or even a standard cutout on a desk or machine. But before we get to that, let’s talk about the two core dimensions you’ll need to nail down: internal and external. Let’s start with internal dimensions because that’s where 90% of sizing missteps start.
When measuring your internal required space, don’t just take the length, width, and height of your core component. Leave room. Not just a little, but intentional room. Think about what’s going on inside your casing, even if it feels trivial: wires. Most projects have at least two or three leads sticking out of a board, a battery, or a sensor. If you cram every millimeter of internal space to exactly match your circuit board, those wires won’t have anywhere to go—they’ll bend, kink, or even push the board out of alignment. That’s why our go-to rule for customers is: add 10% to the total volume of the components you’re housing, minimum. For example, if your circuit board is 10cm long, 5cm wide, and 2cm tall, that’s 100 cubic cm. 10% of that is 10cm³, so you’ll want internal space for 110cm³. For smaller parts, like a 2cm x 2cm sensor, that’s 0.08cm³ total—10% is only 0.008cm³, so you can get away with just a 1mm gap around it, which is enough to avoid pressing on sensitive pins.
Wait, but what about protruding components? If your project has anything that sticks out of the casing—like USB ports, buttons, switches, an LCD screen, or a power jack—you have two extra sizing variables to account for: the depth of that protruding part, and the thickness of the casing walls. Casing walls aren’t paper-thin, not if you want them to be durable. Most standard plastic casings we supply use walls that are 2mm thick, though we can do custom wall thicknesses (thicker for heavy industrial use, thinner for ultra-portable devices) if needed. So if your USB port sticks out 3mm from your circuit board, that’s 3mm. Add the 2mm wall thickness, and that means the total external height of that part will extend 5mm beyond the back of the casing. If you forget that, when you mount the casing to a panel, that USB port will either be recessed so far it’s hard to plug into, or it will stick out so far it catches on things.
That brings us to external dimensions, which are just as critical for projects that need to fit into a larger structure. Let’s say you’re building a temperature sensor that has to snap into a standard 86mm x 86mm wall cutout (super common for home automation devices) or a 19-inch rack for industrial electronics. If you order a casing that’s 86.5mm wide, it will wiggle in that cutout, require a lot of extra trim, or even not sit flush. If you order one that’s 85mm wide, it will rattle around and look unprofessional. For these kinds of use cases, we always recommend adding a 0.2mm tolerance gap for external dimensions. That’s small, but it’s enough to let the casing slide securely into a standard cutout without being too loose, and it’s a gap that most standard manufacturing processes can hit consistently.
Now, what about different types of casings? This is where a lot of people go wrong because they assume all casings are the same. For example, if you’re choosing an enclosure for a prototype, a snap-together plastic casing is fine—those are designed with interlocking edges that require a small amount of flexibility, so their internal dimensions are slightly loose when closed to allow that snap. If you measure a snap-together casing’s internal dimensions when it’s open, it will be a few tenths of a millimeter larger than when it’s snapped shut, so you have to use the closed internal dimensions as your target. On the other hand, if you need a watertight or dustproof casing, like for an outdoor sensor or a marine device, you’ll need a gasket or O-ring to seal the gap. That means you have to account for the thickness of that gasket in your sizing, too. A watertight casing with a 1mm thick EPDM gasket, for example, will need its internal dimensions to leave room for both your components and that gasket. If you skip that, the gasket won’t compress enough to create a proper seal, and your device will end up getting water or dust inside.
I also get a lot of questions about custom vs. standard sizes. When is it worth it to order a custom size, and when can you just grab a standard casing? Standard casings are great for hobby projects, low-volume runs, or when timeline is tight—they’re usually in stock, so you can get them in a matter of days instead of weeks. Standard sizes cover most common component dimensions, from small 5cm x 5cm sensor casings up to large 50cm x 50cm enclosures for control panels. But if you’re doing a high-volume production run (1,000 units or more), or your components are non-standard, or you need a specific shape that doesn’t fit standard rectangles or squares, custom is almost always the better choice. With custom casings, we can adjust every dimension, add cutouts for ports, buttons, and mounting holes, even add screw posts inside so you don’t have to drill holes yourself. The catch? Custom casings do have a small upfront tooling cost, and lead times are longer—usually 2-4 weeks for production, depending on the complexity. For a prototype or a 10-unit test run, the tooling cost might not make sense, so standard is the way to go. For 500 units or more, the per-unit cost for custom casings usually works out cheaper than buying standard casings and modifying them, especially if you have to cut a lot of your own holes.
Let’s talk about a real example to make this concrete. A few months back, I worked with a startup that was building a portable air quality monitor. They came to us saying their sensor board was exactly 8cm long, 5cm wide, and 1.5cm tall, so they wanted a casing 8cm x 5cm x 2cm. But they forgot two things: their battery was 1cm tall, sticking out the back of the board, and they needed to leave room for wires connecting the board to the screen that would sit on top of the casing. When they ordered their first batch of standard casings that size, the battery wouldn’t fit inside, so they had to cut a notch in the back of every casing—costing them extra time and money per unit, and leaving rough edges that looked unprofessional. We adjusted their sizing: we added 10% volume to the total (so internal space of 8.8cm x 5.5cm x 2.2cm), we added a 1cm tall notch at the back specifically for their battery, and we used a 2mm wall thickness. For their next production run, they went with a custom casing based on that, and they saved over $1,200 in labor costs from not having to modify every unit. That’s the kind of small sizing detail that adds up to big savings for projects.
Another common mistake: ignoring environmental factors. If your project is going to be outside, or in a high-temperature environment (like a factory, or a car engine bay), plastic expands when it gets warm and contracts when it gets cold. That’s called thermal expansion, and it’s something you have to account for in sizing. Most plastics have a thermal expansion coefficient of about 70-100 micrometers per meter per degree Celsius. That means a 10cm long casing will expand by 0.07mm for every degree it heats up. If your project is going to be in an environment that swings 30 degrees between day and night, that’s a 2.1mm expansion—enough to make a tight casing split at the seams. For these cases, we recommend sizing the internal space to leave at least 1mm of extra room in all dimensions to accommodate thermal expansion. For indoor projects where temperatures stay consistent, this isn’t a big deal, but it’s non-negotiable for outdoor or industrial devices.
Wait, what about mounting options? Do they affect size? Absolutely. If you’re going to mount your casing with screws that go through the sides, or mounting feet on the bottom, you have to add space for those. If you want to mount it on a wall, you need to make sure the external dimensions fit the wall space you have. If you’re using DIN rail for industrial enclosures (that’s the standard metal rail inside electrical panels), you have to make sure the casing’s internal dimensions for the rail are a standard size—DIN rails come in standard widths, so your casing has to be sized to fit that rail. If you’re not sure what mounting system you’re using, just tell us, and we’ll help you adjust the size to fit.
Let’s wrap this up with a simple, step-by-step checklist you can use right now, no matter what project you’re working on:
- List all components you’re housing, and their exact dimensions (length, width, height) for each. Add 10% to the total volume to account for wires, gaps, and extra space.
- Measure any protruding parts (USB, buttons, sensors) and add the wall thickness (usually 2mm for standard casings) to each of those measurements. That gives you the total external extension.
- If your casing needs to fit into a cutout, panel, or rack, add a 0.2mm tolerance gap to your external dimensions to ensure a snug, flush fit.
- If your project will be in a hot, cold, or outdoor environment, add at least 1mm of extra space in all dimensions to account for thermal expansion.
- Decide if standard or custom casings make sense for your project: standard is best for low-volume runs, prototypes, or tight timelines; custom is better for high volume, non-standard parts, or when you need specific features like pre-cut holes.

At the end of the day, picking the right plastic casing size isn’t just about measuring parts—it’s about accounting for all the little details that you might not think about until it’s too late. I’ve seen projects get delayed, budgets blown, and even products pulled from shelves because someone ordered the wrong size casing, and none of that has to happen. We work with every type of customer, from individual hobbyists building their first project to large corporations rolling out thousands of units, to walk through every sizing step, answer questions, and make sure you get a casing that fits perfectly, on time, and on budget. If you’re not sure about your sizing, or you want to run your numbers by an experienced supplier, we’re here to help—just reach out to discuss your project.
Plastic 3D Printing References:
- International Organization for Standardization. Plastics – Determination of thermal expansion of rigid plastics. ISO 11359-2:1999.
- Society of the Plastics Industry. Design Guidelines for Plastic Enclosures and Components. SPI:2018.
- National Electrical Manufacturers Association. Standard Dimensions for Electrical Enclosures. NEMA 250-2020.
Huizhou Jiejin Plastic Technology Co., Ltd.
Huizhou Jiejin Plastic Technology Co., Ltd. is one of the most professional plastic casing manufacturers and suppliers in China, featured by quality products and low price. We warmly welcome you to wholesale advanced plastic casing made in China here from our factory. If you have any enquiry about customized service and OEM service, please feel free to email us.
Address: Guangming Village, Tongqiao Town, Huizhou City, Guangdong Province, China
E-mail: info@jiejinplastic.com
WebSite: https://www.jiejinplastic.com/