The equilibrium of a firm under perfect competition will be determined when marginal revenue equals marginal cost. In the short run, perfectly-competitive markets are not productively efficient as output will not occur where marginal cost is equal to average cost (MC=AC). They are allocatively efficient, as output will always occur where marginal cost is equal to marginal revenue (MC=MR).