Short term capital losses

If I have short term capital losses, it seems most beneficial to offset those against income taxed at the highest rate, i.e. short term capital gains or normal income. If I also have long term capital gains, do I have to offset the losses vs those when that is less beneficial, or am I allowed to carry these losses over into the next year instead?