In present article a new model of compact star is obtained in the framework of general relativity which does not suffer from any kinds of singularity. We assume that the underlying fluid distribution is anisotropic in nature along with a new form for the metric potential e λ which is physically reasonable. Though the model parameters depend on four constants a, b, A and B but we have shown that the solutions depend on two free constants since these four constants are correlated to one another. Our proposed model of anisotropic compact star obeys all the necessary physical requirements which have been analyzed with the help of the graphical representation where n lies in the range of − 200 ≤ n ≤ 200. We have shown that the model satisfies all the energy conditions as well as the causality condition. The model is potentially stable and also satisfy Harrison-Zeldovich-Novikov's stability condition.