This work gives exact solutions for the torsional analysis of variable and open cross-section bars. An analytical method is derived to form the stiffness matrix of the bar, including the effect of warping. Only one element is needed for the exact solution in regions with continuous variation in section properties and loading. Several examples are given and compared to approximate results.