A computer program for calculation of total wedge angles to reveal DNA curvature was developed. The calculation is essentially based on the wedge model and uses recently updated values of roll and tilt wedge angles and twist angles between the nearest neighbor base pairs. When the wedge angles of the individual neighboring base pairs are summed along a long DNA sequence, three dimension vectorial summations were employed. Thus, a major improvement in this calculation is to eliminate the earlier approximation of two dimension vectorial summation of roll and tilt wedge angles. The 33 DNA sequences of periodic repetition that have previously been reported to have a bent structure were analyzed with this computer program and the magnitude of gel retardation was found to be correlated with the accumulated wedge angle. Thus, the gel retardation patterns of permuted DNA fragments can be predicted with this computer program analysis. This program also correctly reveals the bending locus of pT181 replication origin sequence which does not contain any periodic poly(A) tracts.