The cost per spin on a slot machine is determined by multiplying the coin value by the number of paylines.