The article presents a method for balancing Gross Domestic Product (GDP) when the measurements of its components are distorted by the existence of the shadow economy. Our proposal to measure GDP is based on a multiple ultrastructural model (MUM), where the explanatory variables are subject to error. We show that the expected value of GDP can be divided into two parts: the first part concerns data related to registered activities and the second part concerns unobserved data which may be partly related to the shadow economy. The empirical analysis is based on the annual data for individual voivodeships in Poland for the years 2000–2019. The data are obtained from the Local Data Bank of Statistics Poland. Two approaches to measuring GDP are considered: from the expenditure side and from the production side. The results show that the unobservable part of the variables necessary to balance GDP on the production side does not exceed 1% of GDP, and on the expenditure side, it mostly reaches about 3% of GDP.