Zhejiang Xinsenzheng Automation Co., Ltd.

Industrial Sensor Manufacturer OEM & Application Support Factory-direct Supply

How to choose M8, M12 and M18 proximity sensors for machines

An M8 M12 M18 proximity sensor is an inductive cylindri […]

How to choose M8, M12 and M18 proximity sensors for machines

An M8 M12 M18 proximity sensor is an inductive cylindrical device that detects metal without contact, with the “M” number indicating thread diameter in millimetersโ€”not sensing range. Sensing distance scales with size: M8 detects roughly 1โ€“2 mm[1], M12 around 2โ€“4 mm, and M18 approximately 5โ€“8 mm, per 2026 manufacturer datasheets. Non-flush (unshielded) models sense about 50% farther than flush versions, while M12 remains the general-purpose workhorse for most machine-mounting tasks.

How do sensing distances compare from one size to the next? Which mounting type, flush or non-flush, fits your particular job? What wiring and output should you order? And how do you match an M8 M12 M18 proximity sensor to real machine tasks without paying more than you need to?

Quick Takeaways

  • The “M” number indicates metric thread diameter in millimeters, not sensing range.
  • Larger barrels hold wider coils, so M18 reaches roughly 5โ€“8 mm detection.
  • Choose flush sensors for flush metal mounting; non-flush senses about 50% farther.
  • Pick M8 for tight jigs, M12 for general-purpose machine mounting tasks.
  • Match PNP/NPN and NO/NC output to your PLC input before ordering.

What do M8, M12 and M18 mean on a proximity sensor?

When you see M8, M12 and M18 stamped on a proximity sensor, those numbers point to the metric thread diameter of the round barrel housing measured in millimeters, and they are not talking about the sensing range at all. So an M12 sensor is essentially the one with a 12 mm threaded body. A bigger thread number usually means a bigger sensing coil sitting inside, and that almost always translates into a longer detection distance. Inside one of these inductive sensors there is a copper coil that puts out an electromagnetic field, meaning an invisible magnetic zone.

A wider barrel can hold a wider coil, and a wider coil throws that field out farther, so the housing you settle on actually locks in your realistic range before you even glance at the datasheet.

The jump between sizes is pretty steep. In one shielded inductive family, theย maximum operating distance is 1.5 mm for M8, 2 mm for M12 and 5 mm for M18ย (2026 datasheet). Moving from M12 up to M18 more than doubles how far you can reach without changing the sensor type at all. Looking across the wider catalogs, standard cylindricalย M8/M12/M18 inductive families cover 1 to 15 mm sensing across the rangeย (2026).

There is one practical trap worth remembering. Never assume that “M18 = 18 mm range.” Range and thread size are really two separate numbers.

Pro tip, match the housing to the mounting hole you already have first, then double-check that the coil gives you enough of a gap. A tight machine bracket might force an M8 M12 M18 proximity sensor choice long before range ever becomes the deciding factor.

M8 M12 M18 proximity sensor thread diameter comparison

How much sensing distance does each thread size actually give you?

An M8 M12 M18 proximity sensor gives you roughly 0.8,2 mm, 2,6 mm, and 5,12 mm of nominal sensing range respectively, but the usable range is shorter once you account for the target metal. In one shielded inductive family, the maximum operating distance is listed asย 1.5 mm for M8, 2 mm for M12, and 5 mm for M18ย (2026). Always design for the corrected range, not the catalog headline.

Nominal sensing distance (Sn) is measured against a mild steel target under lab conditions. Real machines rarely match that. Below is what you can actually plan around:

Thread Nominal Sn (flush) Non-flush Sn Safe working range
M8 0.8โ€“1.5 mm[3] 2 mm 0.5โ€“1.2 mm
M12 2โ€“4 mm 6 mm 1.5โ€“3 mm
M18 5โ€“8 mm[4] 12 mm 4โ€“6 mm

Flush (shielded)ย sensors embed into metal without false triggering, but lose range.ย Non-flush (unshielded)ย sensors reach farther, yet need a metal-free zone around the tip.

Correction factors cut your range further. Steel is the reference at 1.0. Stainless steel drops to about 0.7, brass around 0.5, aluminum near 0.4, and copper close to 0.3. So an M12 rated at 4 mm on steel senses aluminum at roughly 1.6 mm.

Skip guesswork, check each datasheet’s reduction table before committing to a mounting gap.

M8 M12 M18 proximity sensor sensing distance comparison with metal correction factors

Sensing distance vs mounting space โ€” which size fits your machine?

Choose the size by lining up the air gap you actually have against the bracket space you can work with, rather than automatically reaching for the biggest sensor. A shielded inductive M8 M12 M18 proximity sensor gives you roughlyย 1.5 mm, 2 mm, and 5 mm operating distanceย respectively, which is the distance at which it can actually spot the target, according to the 2026 datasheet. So if your fixture only leaves an 8 mm hole but the target is sitting 4 mm away, an M8 physically fits into the space yet cannot reach that far, and that gap really pushes you toward an M18 or a change in the design itself.

When does a tight fixture force M8 despite the short range?

Go with M8 when the amount of panel space you have is the firm limit. Robot end-effectors, small pneumatic grippers, and index tables often leave only a 9 to 10 mm[5]ย mounting web, which is the strip of material between the moving parts. In these situations you accept the roughly 1.5 mm range and simply bring the sensor face closer to the target. The trade-off is a tighter mechanical tolerance, meaning less room for error.

If vibration lets that gap drift past 1.5 mm, you lose the signal completely.

When does M18 win because of an unavoidable gap?

Pick M18 when there is no way to get the sensor close to the target, for example when you need to detect a metal cam through a 6 mm plastic guard or reach across a conveyor gap. The 5 mm range gives you some working margin, and the heavier M18 thread holds up under higher clamping torque, which is the tightening force on the mounting. The cost of this is that it needs a 19 mm clearance hole and more depth behind the panel.

Rule of thumb: size the sensor so that your actual air gap sits at 70 to approximately 80%[6]ย of the rated distance, which leaves you a bit of margin for any drift over time.

Beyond how well it fits mechanically, the electrical specifications behind each size shift the decision even further.

M8 M12 M18 proximity sensor mounting space versus sensing distance comparison

What electrical specs differ between M8, M12 and M18 sensors?

The M8, M12 and M18 proximity sensors all share a common supply voltage window, which is typicallyย 10 to 40 VDC per one inductive sensor family (2026 datasheet), but where they differ most is in load current. The smaller M8 units generally carry 100 to 200 mA, while the M18 bodies handle 200 to 400 mA, and that comes down to the fact that the bigger housing holds more copper and a larger heat sink. An M18 can drive a heavier load without overheating, whereas an M8, with its thin 8 mm body, runs hot faster and needs a lower current cap. That gap in current really changes how you wire relays and PLC inputs.

How does load current affect your PLC wiring?

Load current is what decides whether the sensor can drive a device directly. A standard 24 VDC PLC digital input draws only 5 to 10 mA, so any of the three sizes powers it easily. But if you’re switching a small relay coil that pulls 150 mA, an M8 rated at 100 mA will fail. The thing to do is match the sensor’s rated output current to the coil’s inrush current, and not just its holding current.

What about switching frequency across sizes?

Switching frequency, meaning how many times per second the output can toggle, usually drops as the diameter grows. Many M8 inductive sensors switch at 1,000 to 3,000 Hz. The larger M18 units often sit at 200 to 500 Hz. Fast counting jobs, like counting teeth on a rotating gear, generally favor the smaller, faster M8.

  • M8:ย 100โ€“200 mA load, up to ~3 kHz switching, 10โ€“30 VDC typical
  • M12:ย 150โ€“300 mA load, ~500โ€“1,000 Hz, 10โ€“40 VDC
  • M18:ย 200โ€“400 mA load, ~200โ€“500 Hz, 10โ€“40 VDC

It’s worth checking the datasheet’s short-circuit protection line as well. Most quality inductive sensors include it, but if you pair an unprotected output with a poorly fused input, you can cook the sensor’s transistor on the very first wiring mistake.

M8 M12 M18 proximity sensor electrical specs wiring comparison

PNP or NPN, NO or NC, cable or connector โ€” how do you match wiring?

Match wiring by starting with your PLC input card: sinking (negative-logic) inputs need PNP sensors, sourcing inputs need NPN. Get this backwards and the sensor sees the target but the PLC reads nothing. Most modern European-style DC input cards expect PNP, so PNP is the safer default for a new M8 M12 M18 proximity sensor build.

PNP vs NPNย describes how the output switches. A PNP (sourcing) sensor delivers +V to the load when triggered. An NPN (sinking) sensor pulls the load to 0V[7]ย instead. The load, your PLC input, must be wired for the opposite. Many inductive families offer both NPN and PNP output options in the same M8/M12/M18/M30 housing (2026), so you pick at order time, not on the shop floor.

NO vs NCย sets the resting state. Normally Open (NO) switches on when metal appears; Normally Closed (NC) switches off. Use NC for safety-adjacent detection, a broken cable then reads the same as “no part,” failing safe.

M8 3-pin vs 4-pin, and cable vs connector โ€” which do you order?

Order 4-pin M12 connectors for anything you may rewire; order pre-molded cable for permanent, tight installs. A 3-pin M8 carries power plus one output. A 4-pin M8 or M12 adds a second output or NPN/PNP selection. Pigtail versions give a short flying lead ending in a plug, letting you swap the sensor in under 30 seconds without cutting wire, worth the small price premium in high-changeover cells.

Which IP rating and housing do washdown, welding and high-vibration cells need?

Match the housing to the hazard, not the machine size. Washdown lines need IP69K stainless steel, welding cells need weld-field immune coatings, and presses need shock- and vibration-rated potted barrels. An M8 M12 M18 proximity sensor with only IP67 will survive splashes but fail under 80ยฐC high-pressure steam cleaning.

What does washdown demand from a stainless sensor?

Washdown lines demand IP69K-rated stainless steel bodies that survive 80ยฐC water blasted at 80,100 bar. IP67 means 30 minutes underwater at 1 meter, but it says nothing about pressure. Food and dairy plants run caustic cleaning cycles daily, so a nickel-plated brass barrel corrodes within months. Pick 316L stainless with a PTFE-coated face and a molded cable exit,no gap for bacteria to hide. See theย IP code standardย for exact test conditions.

Why do welding cells need coated barrels and strain relief?

Welding cells throw molten weld spatter that sticks to bare metal faces and blinds the sensor. Anti-spatter PTFE or ceramic coatings let the beads slide off. Strong weld-field magnetism also triggers false switches, so choose weld-immune electronics. For robot presses, a potted M18 sensor,filled solid with epoxy resin,resists the 30g shock and constant vibration that shakes loose ordinary cast-in coils. Metal barrels also protect the strain relief where the cable meets the body, the single most common failure point on any sensor.

Typical applications for M8 vs M12 vs M18 sensors

Match the thread size to the machine part it watches: M8 for tight grippers and small cylinders, M12 for conveyors and fixtures, M18 for pallets and long-gap sensing on big frames. In a standard shielded inductive family, theย maximum operation distance runs 1.5 mm for M8, 2 mm for M12, and 5 mm for M18ย (2026), which explains why each size lands where it does.

Where does the M8 sensor earn its spot?

The M8 fits jobs where space is the enemy. Think two-finger pneumatic grippers, small bore cylinders under 32 mm, and index tables with crowded tooling. Its 1.5 mm reach forces you to mount close, but the 8 mm[8]ย body slips into brackets a bigger sensor would never clear. Robotic end-of-arm tooling leans on M8 for exactly this reason.

Why is M12 the general-purpose workhorse?

M12 handles the widest slice of factory work. Conveyor belt part-present checks, weld fixture clamp confirmation, and pallet stop verification all sit inside its 2 mm gap. One M8/M12/M18 proximity sensor family listsย a 1 to 15 mm sensing range across sizes on 10 to 40 VDCย (2026), and the M12 hits the sweet middle. Pro tip: standardize spares on M12 to cut your stocked part count.

When should you reach for M18?

M18 wins on longer gaps. Its 5 mm reach detects steel pallets, large slide positions, and heavy jigs on welded frames where brackets flex. Skip M8 here,the extra distance forgives real-world misalignment that would blind a smaller sensor.

Common mistakes when choosing proximity sensor size

The most expensive mistake is buying a flush-mount (embeddable) sensor for its neat installation, then discovering the sensing distance dropped by up to 50%. Flush versions bury the coil in metal, which shields it. A non-flush M12 might reach 6 mm, but the flush M12 in the same family reaches 2 mm. Check the datasheet variant before you order.

Why do buyers oversize the housing?

Habit. A shop that stocks M18 sensors will bolt them everywhere, even where an M8 fits. An M8 M12 M18 proximity sensor family shares the same voltage window and outputs, so the bigger body buys you nothing but a larger mounting hole and higher cost. If your air gap is under 1.5 mm[9]ย and space is tight, theย M8 rated at 1.5 mm shielded (2026 datasheet)ย does the job.

What target reduction do people forget?

Non-ferrous metals cut the rated range hard. Inductive sensors are rated on mild steel. Point one at aluminum and you lose about 60%; brass drops it roughly 50%; copper near 70%. A sensor rated 5 mm on steel may only trigger at 1.5 mm on aluminum. Add the reduction factor before you finalize the size.

One more trap: connector gender. Order a male M12 pigtail when your use expects a female, and the whole cell waits on an adapter. Confirm the machine loom coding first.

Frequently asked questions about M8, M12 and M18 proximity sensors

Buyers keep asking the same three questions before they place an order. Here are the direct answers, with the specs you need to check before you swap or spec any part.

Can I swap an M12 for an M18?

No,not without changing the bracket and re-checking the air gap. An M18 is a wider thread, so the mounting hole must grow from 12 mm to 18 mm. The upside is more range: a common shielded family listsย 2 mm for M12 versus 5 mm for M18ย (2026 datasheet). If your target sits 4 mm[10]ย away, the M12 will never see it, but the M18 will. Confirm the sensing face stays clear of surrounding metal after the swap.

What’s the difference between shielded and unshielded?

Shielded (flush) sensors have a metal ring around the coil, so you can mount them level with metal. That ring shrinks the field. Unshielded (non-flush) sensors give roughly 50% more range but need a clear metal-free zone around the face,usually three times the diameter. Pick shielded for tight machine slots, unshielded when you need every millimeter of reach.

How far can an M18 detect aluminum?

Far less than steel. Rated distances assume mild steel (Fe360). Aluminum, brass, and copper drop the range by a correction factor near 0.35,0.40. So an M18 rated at 5 mm on steel reads aluminum at closer to 2 mm.

Either move the target nearer or choose a factor-1 sensor that treats all metals equally.

Choosing the right size โ€” a quick selection summary

Pick the smallest M8 M12 M18 proximity sensor that still reaches your target with margin to spare. Size follows range, and range follows air gap. For shielded (flush-mount) inductive types, the maximum operating distance runsย 1.5 mm for M8, 2 mm for M12, and 5 mm for M18ย (2026 datasheet). Match those numbers to your gap first, then check that the thread fits your bracket.

Work through this shortlist before you buy:

  • Air gap: measure the real distance to the target, then leave 20โ€“approximately 30% derating margin so vibration and drift don’t cause missed detections.
  • Target material: mild steel gives full rated range; aluminum, brass, and stainless cut it sharply. Confirm the reduction factor on the datasheet.
  • Bracket space: an M18 needs a 30 mm hole with wrench clearance; an M8 slips into a 12 mm slot. Verify before ordering.
  • Environment: washdown, welding, or oil coolant sets your IP rating and housing metal.
  • Wiring: PNP or NPN, NO or NC, cable or M12 connector โ€” match your PLC input card.

Standard sizes stay durable across a wide band. Many families carry anย operating temperature range of -25ยฐC to 70ยฐC at IP67ย (2026), which covers most factory floors.

Still unsure between two sizes? Request the full datasheet and a physical sample. Test the actual air gap on your machine with your real target metal before committing to a production order, a five-minute bench check beats a costly field swap.

ๅ‘่กจๅ›žๅค

ๆ‚จ็š„้‚ฎ็ฎฑๅœฐๅ€ไธไผš่ขซๅ…ฌๅผ€ใ€‚ ๅฟ…ๅกซ้กนๅทฒ็”จ * ๆ ‡ๆณจ

Select the fields to be shown. Others will be hidden. Drag and drop to rearrange the order.
  • Image
  • SKU
  • Rating
  • Price
  • Stock
  • Availability
  • Add to cart
  • Description
  • Content
  • Weight
  • Dimensions
  • Additional information
Click outside to hide the comparison bar
Compare