This calculator will calculate the number of materials needed for a picket (pale) fence. It will calculate the actual post spacing based on max post spacing and the picket spacing on desired picket spacing to create a fence with evenly spaced post and evenly spaced pickets on the good side. If you are building a good neighbour fence, pickets on both sides, it will double the number of pickets needed and you may have to adjust the total amount by one or two pickets needed.
The picket spacing is based on using full-sized pickets. If you want to keep it the same as the desired amount you will have to rip one or two of them to make it work.
The railing material is in lineal feet needed. If you buy the material in a store you will have to figure out how many sections you can get out of one length of material. A mill will most likely sell in cut to size lengths.