For a self-similar measure in d-dimensional Euclidean space with overlaps but satisfies the so-called bounded measure type condition introduced by Tang and the authors, we set up a framework for deriving a closed formula for the Lq-spectrum of the measure for nonnegative q. The framework allows us to include iterated function systems that have different contraction ratios and those in higher dimension. For self-similar measures with overlaps, closed formulas for the Lq-spectrum have only been obtained earlier for measures satisfying Strichartz second-order identities. We illustrate how to use our results to prove the differentiability of the Lq-spectrum, obtain the multifractal dimension spectrum, and compute the Hausdorff dimension of the measure.