The attenuation coefficient (AC) is an optical property of tissue that can be estimated from optical coherence tomography (OCT) data. In this paper, we aim to estimate the AC accurately by compensating for the shape of the focused beam. For this, we propose a method to estimate the axial PSF model parameters and AC by fitting a model for an OCT signal in a homogenous sample to the recorded OCT signal. In addition, we employ numerical analysis to obtain the theoretical optimal precision of the estimated parameters for different experimental setups. Finally, the method is applied to OCT B-scans obtained from homogeneous samples. The numerical and experimental results show accurate estimations of the AC and the focus location when the focus is located inside the sample.