Baseboards often sit above the floor with the flooring running underneath them to meet the wall. Therefore, when measuring, the measurement should be taken from wall to wall, not from the edge of the baseboard. Baseboards provide a buffer for any imperfections where the flooring meets the wall.