TCP handles lost packets by using a sequence number for each packet. If the receiving device does not acknowledge a particular packet, TCP assumes the packet was lost and retransmits it.