In this paper we propose a spectrum broker scheme that uses a distributed algorithm for control and resource allocation in a small cell heterogeneous network. We analyze the performance of the distributed algorithm proposed in terms of capacity. The influence of network parameters as the number of users, the size of the small cells and the number of small cells, on the performance of the algorithm is analyzed in order to determine the conditions where the implementation of a distributed spectrum broker is feasible. We probe that a distributed spectrum broker is feasible of real implementation and its performance is close to the ideal and traditional centralized decision algorithms.