In this work, we have discussed a spatially homogeneous and anisotropic Bianchi type-I space-time in the presence of Barrow holographic dark energy (infrared cutoff is the Hubble’s horizon) proposed by Barrow recently (Physics Letters B 808 (2020): 135643) and matter in the framework of f (Q) gravity where the non-metricity Q is responsible for the gravitational interaction for the specific choice of f (Q) = λQ 2 (where λ < 0 is a constant). In order to find the exact solutions to the field equations we consider the deceleration parameter q is a function of the Hubble’s parameter H i.e. q = b − n H (where b and n are constants). We have studied the physical behavior of important cosmological parameters, such as the EoS parameter, BHDE and matter density, skewness parameter, squared sound speed, and ωB − ω ′ B plane. We also constrain the values of the model parameters b and n using 57 Hubble’s parameter measurements.