Precast concrete pipe racks are an economically advantageous alternative to steel pipe racks in industrial projects like refineries and petrochemical plants. One major reason for this is the elimination of fire proofing needs for the precast element. Optimal design of the concrete elements would further lower the cost. This paper deals with the optimal design of precast concrete pipe racks, considering design variables such as member sizes, grades of concrete and steel, and reinforcement area. Genetic algorithms (GA) have been used for optimisation and a program in VC++ has been developed to arrive at the optimal solution, which corresponds to overall cost, satisfying design criteria for strength and limiting deflection. Proposals for most favourable jointing mechanisms in terms of cost and constructability have also been given.