Objective: To analyse direct and indirect costs of tuberculosis (TB) diagnosis and treatment and factors associated with those costs. Methods: All TB patients diagnosed and registered in a database at national level within the Integrated Research Project on Tuberculosis of the Spanish Society of Pneumology and Thoracic Surgery between September 2014 and September 2015 were included. We calculated direct costs (hospital stays, visits, diagnostic tests, treatment), and the resulting indirect costs of absenteeism and lost of productivity, contact tracing and rehabilitation measures. All costs were compared according to the following variables: age, gender, immigration, microbiological results, treatment, directed observed therapy (DOT), place where the process started (inpatient or outpatient) and days of absenteeism. For the statistical analysis, chi square test and logistic regression analysis were used. Results: 319 patients were included with a mean age of 56.72 ± 20.79 years. The average cost per patient was 10.262,62 ± 14,961,66 €., and increased significantly in the presence of hospital admission, thoracic CT, pleural biopsy, drug treatment extended over nine months, DOT and absenteeism. In multivariate analysis hospitalization: OR= 9,68 (CI 2,9-47,2) p Conclusion: Tuberculosis carries significant health spending, and it would be advisable to prevent the disease and to reduce hospitalizations trying to reduce costs. Supported by Grant SEPAR 136/2013.