Factors include the type of lumber (softwood is cheaper, hardwood is more durable and aesthetically appealing), quality of materials, and additional hardware requirements. The availability of materials and proximity to suppliers also affect costs.