PurposeThe state of public buildings in Tanzania exhibits evidence of a lack of maintenance and repair. Despite efforts to raise the performance of public buildings, little emphasis is placed on maintenance works and related factors affecting maintenance costs of public buildings, which are often high. This study aims to examine factors affecting maintenance costs of public buildings.Design/methodology/approachThis was a case study involving two government building agencies – Tanzania Buildings Agency (TBA) and National Housing Corporation (NHC). A total of 387 tenants and 29 experts participated in the study. Data were collected using questionnaires and analyzed using Stata version 16 – descriptive statistics feature reporting absolute numbers and frequencies.FindingsBoth tenants and experts ranked building age, poor quality control, building material used, execution of work when it is urgent and inadequate financial resources as major factors affecting maintenance costs of public buildings. In the distinctive rating, tenants ranked resource management as a major factor, while experts ranked ignorance about the property of materials, misuse of buildings and faulty maintenance as major factors.Research limitations/implicationsThe study has some limitations such as geographical coverage which is limited to Dar es Salaam and Dodoma regions, hence missing information from other regions may have different experiences. Additionally, data were collected in a self-reported manner which could bring about information bias.Practical implicationsFindings of this study provide an insight on recent developments on the factors affecting maintenance cost of buildings using two cases of NHC and TBA which are single entities owning a substantial amount of housing units in Tanzania. Factors affecting the maintenance cost of public buildings identified in this study is a threshold for experts to devise strategies for minimizing maintenance costs.Originality/valueTo the best of the authors’ knowledge, this is the first study that assessed factors affecting maintenance cost in public buildings run by TBA and NHC from the tenant and expert perspectives.