The main factors that affect the speed of data transmission include the bandwidth of the network connection, the distance between the sender and receiver, the type of medium used for transmission, the amount of network traffic, and the efficiency of the networking protocols being used.