The OP said 40 amp wire, so I assume it is a 40 amp breaker. If so, DO NOT terminate it with a NEMA 14-50, that is dangerous, against code, etc.
Terminating it with a NEMA 14-50 is not against NEC -- the code allows for it, but plugging the Tesla into it then violates code because it's considered a 50A load (with 125% continuous load provision). Technicality, but hey.
If only three wires were run, then the best you could do would be to use a NEMA 10-30 receptacle, but now you would really be pushing it since the 10-30 neutral connection would have to be connected to the (presumably) bare ground wire, and if the 10-30 receptacle were used as a 10-30 in the future for something other than Tesla charging, you'd potentially have current running over than bare wire. Not good.
You may NEVER connect a 10-30's neutral pin to the bare copper wire. The neutral *must* be insulated and it is a serious safety issue and code violation.
- - - Updated - - -
Ah nuts. The convenient availability of a large number of such outlets for purchase online made me think it had to be legal.
You may only replace an existing 10-series receptacle with another one. They were in wide use prior to 1996, so that's why you still find them plentiful on the shelves. All new circuits (and subpanel feeders, for that matter) must be 4-wire.
- - - Updated - - -
I'm not so sure about that. A 14-50 outlet is an advertisement of a 50A circuit. The assumption is the wire gauge and breaker behind it are all rated for 50A. However, if you go above 80% of the breaker's rating (40A) for more than 1 hour, it should trip the breaker. You should be able to use all 50A of it, but not for over 1 hour.
Not quite. NEC permits a 50A receptacle to be fed with a 40A conductor and OCPD (breaker), provided the load to be connected is rated for a 40A circuit. Connecting a 50A load to that is what violates the NEC.
If you want to switch back and forth between charging the car and running the sauna, put a 14-50 plug on the end of the sauna's hardwires and switch them when you want to use them. You might be able to put a switch in the middle between the sauna and the car, just make sure it's properly rated for the amperage. Go over a bit to be on the safe side, too.
NEC section 110 requires all manufacturer's instructions to be followed; some appliances are marked for hardwire only. While not a safety issue, technically it's a code violation to attach a plug to a device whose instructions specify hardware only.
- - - Updated - - -
Replacement of an existing outlet may be OK, but I'm not sure. Where's FlasherZ when you need him?
FlasherZ needed a bit of a break to deal with holidays and business travel and a bunch of other crap.
I haven't seen one in person, but anecdotally, I've heard of newer homes with 14-50's for electric ranges, wired with a 40A breaker and 8 Ga wiring. Mine (built in '04) has a 50A breaker and 6Ga.
Many kitchen range outlets are configured as such because most electric ranges fall in the 30-40A range. It's not really a matter of saving a buck, it's a matter of sizing the circuits for the appliances the developer installs.
- - - Updated - - -
If and only if the wire is rated to 50A, you would terminate it with a NEMA 14-50 receptacle as posted. The rating is for transient loads. For continuous loads, it is derated to 80%, so you'd run it at 40 A for routine charging.
Technical point - you don't de-rate for continuous loads, you size the conductors and OCPD's (breakers) for 125% of the offered load. The result ends up the same in most cases, but for certain sections of the code it affects calculations (stacking de-ratings e.g., temperature, etc.).
- - - Updated - - -
You can't install a 30a receptacle unless you downgrade the breaker to 30a to match it...which probably isn't enough for the Sauna. I'd do the HPWC, set to charge at 32a to match the 40a breaker. It would be hard wired so you don't have to worry about the receptacle.
This is correct - two choices... either install an HPWC/EVSE set for 40A branch circuit, or place a 30A breaker & 14-30 receptacle on that circuit.
- - - Updated - - -
And be careful of dryer 14-30's with Romex 12-3 on a 20A 2-pole too.
Big difference: a 30A receptacle may not be installed on a 20A circuit, while a 50A receptacle on a 40A circuit is permitted under the NEC. If you see a 30A receptacle on a 20A circuit, smack the installer/electrician over the head and hand them a copy of the code.
(NOTE: all my previous responses in this thread are per NEC, not CEC which the OP falls under... they're close but not equivalent.)