If you decide to alternate using heat and ice for knee or back pain, you can start by applying heat for 15 to 20 minutes. After a few hours have passed, apply ice to the knee or back for 10 to 15 minutes. Some people may find that alternating heat and ice can help arthritis the most, as opposed to pain caused by an injury or chronic condition.