Method for producing a dental prosthesis which is provided with a number of matrix elements each corresponding to one of a number of patrix elements, respectively, in each case for removable fixation on a number of teeth crowned with a respective male element in the mouth of a patient, wherein the or each matrix element is each made in several parts and comprises an inner cap which can be fitted onto the associated male element and an outer cap attached to the dental prosthesis, and wherein an intermediate body made of thermoplastic material is arranged in the space between the inner and outer caps and connects them to one another, in which the intermediate body is heated to a temperature above its softening temperature and thus made deform-able in order to align the inner cap precisely relative to the outer cap of the respective matrix element, and then, using the deformability of the intermediate body, the inner cap is aligned relative to the outer cap with regard to an optimized accuracy of fit, taking into account intraoral data reflecting the actual dentition situation in the oral cavity of the patient, before the relative position of the inner cap set in this way relative to the outer cap is preserved as a result of the solidification of the intermediate body occurring during the subsequent cooling of the intermediate body.