This work deals with the generation of MATLAB script files that assists the user in the design of a composite laminate to operate within safe conditions. The inputs of the program are the material properties, material limits and loading conditions. Equations based on Hooke’s Law for two-dimensional composites were used to determine the global and local stresses and strains on each layer. Failure analysis of the structure was performed via the Tsai-Wu failure theory. The output of the program is the optimal number of fibre layers required for the composite laminate, as well as the orientation of each layer