How far can I run 18-gauge wire?

There are many things to consider when sizing wire: voltage coming out of the controller, the solenoid draw, how many valves you're trying to operate, quality of your wire splices, etc. For a rough rule of thumb, 18-gauge is good for 750 feet, if you are operating one valve at a time.