A comparative analysis is performed of the basic methods for calculating fractal dimensions and a new computational technique is proposed. A relationships is derived between the invariant distribution function and the probability distribution function of the distances between points on a strange attractor. The effect of boundaries and singularities in the invariant distribution function on fractal dimensions is investigated. Fractal dimensions are computed for particular systems with chaotic behaviour.