Generally, switches are more expensive than hubs. This price difference is due to the advanced features and capabilities that switches offer, such as packet forwarding based on MAC addresses, VLAN support, and improved performance. Hubs, being simpler devices with limited functionality, are usually more affordable.