A method of photometric in vitro determination of the content of an analyte in a sample is disclosed. The sample is located in a measuring chamber which has a radiation path length and has at least one at least partially transparent wall part. The measuring chamber is in optical communication with an optical system adapted for the analyte which includes a radiation source and a radiation detector. The measuring chamber is adjustable in shape which enables the radiation path length across the measuring chamber to be changed. In a first measuring step an unknown first radiation path length across the measuring chamber is set and radiation at at least two wavelengths is transmitted from the radiation source through the measuring chamber and to the radiation detector. In a second step, the measuring chamber is adjusted in shape thereby setting a second unknown path length across the measuring chamber. Radiation at the same wavelengths as during the first step is again transmitted from the radiation source through the measuring chamber and to the radiation detector. The analyte content is then determined on the basis of radiation detected in each of the measuring steps.