Electrical Questions? Ask an Electrician Online.
Hi, I'm Mike G and I'll be assisting you. To be code compliant and have a safe installation you need the following.
1) 50A feed needs a #6 wire minimum. A 4 conductor URD would be suggested. 2 hits, 1 neutral & 1 ground.
2) at the sub panel a driven ground rod with a #6 copper ground wire.
3) a 20A circuit can be ran to the pump on a GFCI breaker.