wire sub panel about 30 feet from main panel 50amp
Sounds about right, as long as the new panel isn't too far from the original panel. You'll need 4 conductors, two ungrounded (hot), one grounded (neutral), and one grounding.