The purpose of this paper is to study corporate social responsibility and the effect of its application on the consumer. To do so, economic literature is applied to the practical field, focusing on the industrial bakery and pastry sector in Spain. By analysing two companies in the sector, a social responsibility index is created that will determine which company is more socially responsible.