Best way to figure out how long of a pipe would be perfect for your motor is by doing "the spray paint method".
Paint a good length of exhaust pipe with regular old spray paint - not the high-heat stuff and preferrably white (or another light color usually works best). Bolt it on to the motor, fire it up, and let the motor run for about 5 minutes or so (heck, go for a rip around the meighborhood if you can). You should be able to see a point where the paint stops being affected by the heat of the exhaust. Chop the pipe off at that point and you'll have the perfect length that you're looking for.