Use NEC 314.16(B) for box fill calculations. Count each current-carrying conductor (ungrounded/hot and neutral) entering the box as one unit. Grounds count as one unit total.
Your conductors:
- 12-2 NM: 2 conductors × 2 cables = 4 units
- 12-3 NM: 3 conductors × 1 cable = 3 units
- Grounds: 1 unit (all grounds combined)
- Total = 8 units
For #12 AWG wire, each unit requires 2.25 sq in (NEC Table 314.16(C)):
8 units × 2.25 = 18 sq in minimum box volume
A standard 4" × 4" × 1-1/2" box = 21 cu in — sufficient.
Important notes:
- The internal clamps count toward fill if they're inside the box (they're part of the cable assembly here, so no extra count needed).
- The duplex receptacle does not count as a conductor, but if it has internal clamps that take up space, ensure the box is deep enough.
- If using a metal box, ensure proper grounding per 250.118.
Recommendation: Use a 4" × 4" × 2-1/8" box (27.5 cu in) for extra working room and to comply with 314.16(A) fill requirements comfortably.