The main difference between trim and molding is their purpose and usage. Trim is typically used to cover gaps or imperfections between surfaces, such as where the wall meets the floor. It can also be used to frame doors and windows. Molding, on the other hand, is more decorative and is often used to add architectural detail to a room, such as crown molding or chair rail molding.