THHN, NM-B, and UF-B look similar on the shelf but live in different worlds: conduit in dry walls, cable in dry walls, and cable in wet earth. Mix them up — NM-B outdoors, THHN without a raceway, UF-B where nobody can pull it later — and you get rot, a failed inspection, or a rewire. This guide maps each type to its NEC article (334 for NM, 340 for UF, 310 for THHN/THWN conductors), with a property table, temperature rules, and the mistakes inspectors see most.

All ampacities below come from NEC Table 310.16 and the cable articles themselves. Metric mm² equivalents use IEC 60364-5-52 for reference; the NEC remains authoritative in AWG.

1. The one-paragraph answer

THHN is a single insulated conductor (with THWN/THWN-2 dual ratings) that must run in raceway or cable assemblies — it is a wire, not a cable. NM-B ("Romex", NEC 334) is a sheathed multi-conductor cable for dry indoor locations. UF-B (NEC 340) is a sheathed cable rated for direct burial and wet locations. If the location is wet or underground, UF-B or conductors in conduit are legal; NM-B is not.

2. Construction side by side

THHN: thermoplastic-insulated single conductor (usually with nylon jacket), dual-marked THWN/THWN-2 in practice, pulled through conduit, trunking, or installed inside listed assemblies. NM-B: two or more THHN-equivalent conductors plus ground wrapped in a PVC outer sheath — fast to install in open stud walls. UF-B: solid conductors fully embedded in a solid-core moisture-resistant jacket — the sheath itself is the water barrier, which is why it survives burial.

PropertyTHHN / THWN-2 (NEC 310)NM-B (NEC 334)UF-B (NEC 340)
FormSingle conductorSheathed cableSheathed cable, solid fill
Needs raceway?Yes (or listed assembly)No (dry interiors)No (direct burial OK)
Wet locationsOnly if marked W (THWN-2)NeverYes
Outdoors / burialIn conduit onlyNeverYes, 600 mm cover (Table 300.5)
Common sizes14 AWG–1000 kcmil14–6 AWG14–6 AWG
Typical useConduit, panels, commercialHouses, dry interiorsFeeders underground, pumps, outbuildings

3. Temperature ratings that actually matter

Modern THHN is usually dual-rated THHN/THWN-2: 90 °C in dry locations, 75 °C in wet ones. NM-B conductors are 90 °C-rated inside, but NEC 334.80 requires using the 60 °C ampacity column for the final ampacity (with the 90 °C column allowed only for derating math). UF-B conductors are 90 °C-rated with final ampacity taken at the 60 °C column the same way. In practice: 12 AWG copper is 30 A at 90 °C, 25 A at 75 °C, 20 A at 60 °C per Table 310.16 — and 240.4(D) caps 12 AWG protection at 20 A regardless.

4. Where each one is allowed (and banned)

LocationTHWN-2 in conduitNM-BUF-B
Dry interior wallYesYesYes (overkill)
Damp (bathroom, garage wall)YesYes (not embedded in masonry)Yes
Wet / outdoors exposedYes (W-rated + rated fittings)NoYes (sunlight-resistant marked)
Underground conduitYesNoYes
Direct burialNo (needs raceway)NoYes

The killer rule: inside buried conduit is a wet location by definition (NEC 300.5(B), 300.9). Plain THHN without a W rating is illegal there; in practice buy dual-rated THWN-2 and the question disappears.

Ambient correction stacks on top: at 40 °C the 310.15(B)(1) factor for 90 °C-rated conductors is 0.91. A 12 AWG THWN-2 starting at 30 A (90 °C column) keeps 30 × 0.91 = 27.3 A for derating math — but NM-B landing is still capped at the 60 °C 20 A from section 3. In a hot attic with six current-carrying conductors (0.80) at 40 °C, THWN-2 in conduit gives 30 × 0.80 × 0.91 = 21.8 A, still good for a 20 A breaker, while the equivalent NM-B bundle lands at 20 × 0.80 = 16 A and fails. Same copper, different jacket rules, different verdict — which is why hot, crowded spaces belong to conduit, not sheathed cable.

5. Worked comparison: 20 A receptacle circuit, three ways

Load: 16 A continuous (1,920 W at 120 V). Wire: 12 AWG copper in all three options. Option A (NM-B indoors): 12/2 NM-B through studs, 20 A breaker, ampacity 20 A at 60 °C — passes. Option B (UF-B to a shed, 25 m direct burial at 600 mm): same conductors, voltage drop 2 × 12.9 × 16 × 82 ft / 6,530 cmil = 5.18 V = 4.3 % on 120 V — over the 3 % branch-circuit guidance, so step up to 10 AWG UF-B (drop 3.25 V, 2.7 %). Option C (THWN-2 in PVC): same math as B, but re-pullable, so most electricians prefer it for sheds and garages.

6. What NEC 334 and 340 actually say

NEC Article 334 covers NM cable: permitted in dry, normally non-corrosive locations (334.10), banned in wet/damp-exposed, buried, or embedded-in-masonry locations (334.12). Article 340 covers UF: permitted underground including direct burial (340.10), with cover per Table 300.5, and protected where it emerges from grade (340.12, 300.5(D)). Article 310 covers single conductors: sizes, ampacity tables, temperature corrections in 310.15, and bundling adjustment in 310.15(C)(1).

7. Derating: where NM-B quietly loses

Bundle more than three current-carrying NM-B cables through one bored hole without spacing and NEC 334.80 triggers adjustment factors. Four to six conductors: 80 %; seven to nine: 70 %. A 12 AWG NM-B home run (20 A at 60 °C) through a packed hole with six current-carrying conductors becomes 20 × 0.8 = 16 A — below a 20 A breaker. Fix: separate holes, short nipples under 600 mm (the 60 % nipple rule, Chapter 9 Note 4), or fewer conductors per hole.

Current-carrying conductorsFactor (310.15(C)(1))12 AWG NM-B left (from 20 A)
4–60.8016.0 A
7–90.7014.0 A
10–200.5010.0 A

8. Assumptions and when this does not apply

  • Residential/light commercial, copper, 60 °C final-ampacity basis for sheathed cables. Aluminium, MI, AC/MC armoured cable, and tray cable follow different articles.
  • US NEC jurisdiction. IEC countries use harmonised designations (e.g. H07V, NYM, NYY) — the physics matches, the article numbers do not.
  • No high ambient (boiler rooms, attics at 60 °C+ need temperature correction per 310.15(B)).
  • No hazardous, patient-care, or fire-alarm circuits — those have dedicated articles that override this guide.

9. Mini-case and the four expensive mistakes

Case: a shed feeder first wired with NM-B in buried PVC (cheap, fast). Two years later the sheath was brittle and green inside — underground conduit breathes, water sits, NM-B is not rated for it. Rewire with 10 AWG UF-B direct-buried at 600 mm with warning tape: materials slightly more, zero callbacks since. The four mistakes inspectors flag weekly: (1) NM-B outdoors or underground, even "inside conduit"; (2) plain THHN (no W) in buried conduit; (3) UF-B stapled where Schedule 80 protection was required at grade; (4) using the 90 °C column as the final ampacity for NM-B/UF-B instead of 60 °C.

Second case from the same truck: a garage wall with twelve NM-B home runs through three bored holes — four cables per hole, each carrying two circuits. That is eight current-carrying conductors per hole: factor 0.70, so every 12 AWG run derates to 20 × 0.70 = 14 A on 20 A breakers. The fix took an hour: spread the runs across six holes (two cables each, factor 0.80 → 16 A still short) and finally split into individual holes with spacing — full 20 A restored. Moral: count current-carrying conductors per hole before drilling, not after the inspector does.

10. Conduit fill quick check for the outdoor run

Conduit that is too full overheats conductors and fails inspection. NEC Chapter 9, Table 1: one conductor 53 % fill, two conductors 31 %, three or more 40 %. For our shed example — three 10 AWG THWN-2 (0.0211 sq in each) plus one 10 AWG ground — total 4 × 0.0211 = 0.0844 sq in. Half-inch PVC Schedule 40 allows 0.114 sq in at 40 % fill — legal but tight to pull over 25 m with two 90-degree bends. Step up to 3/4-inch conduit (0.198 sq in at 40 %) and the pull becomes easy; the cost difference is a few dollars. Count every bend as added friction: more than 360 degrees of bends between pull points violates NEC 344.26/352.26, so add a pull box or an LB fitting mid-run.

11. Sunlight, corrosion, and other slow killers

Outdoor cable jackets die from ultraviolet light unless marked sunlight-resistant (NEC 310.10(C), 334.12(B)(4), 340.12). A UF-B run stapled along a south-facing wall without the marking chalks and cracks within a few seasons — route it in conduit or buy the marked type. Dissimilar metals corrode: aluminium conductors need Al-rated lugs, antioxidant paste, and correct torque (NEC 110.14); a copper-only device fed with aluminium wire without a rated connector loosens as the metals expand differently. In corrosive soils or coastal air, prefer PVC or coated raceways over bare steel, support horizontal runs per NEC 334.30/340.30 and 344.30/352.30 intervals, and keep the minimum bending radius (about 5× cable diameter for NM/UF) so the jacket is never kinked at a staple or connector.

12. See also and try it on your plan

Size the circuit with our cable size calculator, check the numbers against the wire ampacity chart, and verify long outdoor runs with the voltage drop calculator. Conduit sizing lives in the conduit fill guide.

Sketch the run — house wall, trench, shed — in the free demo and export the cable schedule and one-line diagram as PDF.

Try it on your own plan — open the free demo at https://gorkycad.com/cad/?demo=1, no registration needed.

Frequently asked questions

Can NM-B be used outdoors or underground?

No. NEC 334.12 bans NM-B in wet, damp-exposed, buried, or masonry-embedded locations. Use UF-B (Article 340) for direct burial or THWN-2 conductors in conduit.

What is the difference between THHN and THWN-2?

THHN is rated 90 °C dry only; THWN-2 adds the W (wet) rating: 90 °C dry, 75 °C wet. Most wire sold today is dual-marked THHN/THWN-2, which is what you want for any conduit that touches earth.

Why is NM-B limited to the 60 °C column?

NEC 334.80 requires the final ampacity of NM-B from the 60 °C column (20 A for 12 AWG copper) even though the inner conductors are 90 °C rated. You may start derating math from 90 °C, but the landing point cannot exceed the 60 °C value.

Can UF-B run inside the house too?

Yes, UF-B is allowed indoors, but it is stiff, harder to strip, and more expensive than NM-B — most installers use NM-B inside and switch to UF-B or conduit at the outdoor transition.

Does buried conduit count as a wet location?

Yes. NEC 300.5(B) and 300.9 treat the interior of underground or outdoor raceways as wet. Conductors there must be W-rated (THWN-2, XHHW-2), never plain THHN.

Related reading