Quick Facts
Ice use
First 3–4 weeks
Opioid taper
Week 1–2
PT starts
Day 1 (replacement)
Best activity
Daily walking
Colorful medical illustration of the knee joint cross-section showing cartilage, ACL, PCL ligaments and bone structures
Quick answer Effective pain management after knee surgery combines prescribed medications (tapering quickly), consistent ice and elevation, daily walking, and physical therapy compliance. The goal is not zero pain — it is functional pain that allows healing and movement.

Pain Management After Knee Surgery — The Complete Medication Approach

Medications by phase

MedicationPhaseUseNotes
Opioids (oxycodone, hydrocodone)Days 1–14Severe acute painTaper quickly. Never drive while taking.
Acetaminophen (Tylenol)Throughout recoveryBaseline pain controlSafe with opioids if doses don't overlap. 500–1000mg q6h.
Ibuprofen (Advil)Weeks 2–8Inflammation reductionConfirm with surgeon — restricted after some knee replacements.
GabapentinWeeks 1–8Nerve pain, sleepHelps with burning, shooting pain and improves sleep quality.
Stool softenerFirst 2 weeksPrevents constipationEssential when taking opioids. Straining worsens knee pain.

Ice vs. heat after knee surgery

Ice is the most important tool for the first 3–4 weeks. It reduces swelling, numbs nerve endings, and reduces post-PT inflammation. Apply for 15–20 minutes every 2–3 hours. A cold therapy machine (Game Ready, Breg Polar Care) is significantly more effective than a bag of frozen peas — worth investing in for knee replacement recovery.

Heat is rarely appropriate in the first 6 weeks after knee surgery — it increases blood flow and can worsen swelling. After the acute swelling phase (usually after 6–8 weeks), gentle heat can help with muscle stiffness before PT sessions.

Elevation and compression

Elevate the leg above heart level as much as possible for the first 2–3 weeks. This dramatically reduces swelling, which is the primary driver of pain after knee surgery. The correct position: leg elevated on 2–3 pillows so the foot is higher than the heart. Do not put the pillow directly under the knee — this keeps it bent and worsens stiffness.

Compression stockings or TED stockings (prescribed by your surgeon) reduce swelling and DVT risk. Wear as directed — usually for 4–6 weeks.

Pain Relief After Knee Surgery — What Actually Works

Walking as pain relief

Walking is counterintuitive but one of the most effective pain relief strategies after knee surgery. It pumps fluid out of the joint, reduces inflammation, prevents scar tissue from restricting the joint, and releases endorphins. Start with 5-minute walks on day 1 (with walker or crutches as needed) and increase gradually.

Sleep position for knee pain

The best sleeping position after knee surgery is on your back with the leg elevated slightly — on a pillow under the calf, not under the knee. This keeps the knee in extension (straight), which is critical for preventing a flexion contracture (permanent bend). If you prefer sleeping on your side, a pillow between the knees is acceptable.

Applying ice for 15 minutes before bed significantly reduces night pain. Taking your pain medication 30–45 minutes before sleep also helps.

Physical therapy timing

After knee replacement, PT begins on day 1 in hospital. After meniscus surgery, PT begins at week 1–2. Do not skip or delay PT — it is the most important determinant of your long-term outcome. Pain during PT that exceeds 7/10 or lasts more than 24 hours after a session should be reported to your PT.

Pain Control After Knee Surgery — Week-by-Week Plan

Week 1–2 plan

Week 3–6 plan

Month 2–6 plan

Free Knee Surgery Recovery Checklist
Get a week-by-week knee surgery pain management plan — reviewed by Dr. Abbasi.
Free. No spam. Unsubscribe any time.

Physical Therapy and Pain After Knee Surgery

Physical therapy after knee surgery is not optional — studies consistently show that patients who attend PT consistently have significantly better outcomes, less chronic pain, and faster return to activity than those who skip sessions.

PT soreness is progress, not damage: Muscle soreness 12–24 hours after PT (DOMS) is normal and expected. It means the muscles are being challenged and are adapting. Ice for 15 minutes after each PT session prevents it from becoming excessive.

FAQ: Pain Management After Knee Surgery

Can I take ibuprofen after knee replacement?
Ibuprofen after knee replacement is generally permitted but confirm with your surgeon — some protocols limit NSAID use in the first few weeks. After meniscus surgery, ibuprofen is usually permitted from the start.
How long should I use ice after knee surgery?
Ice is most beneficial for the first 3–4 weeks, applied for 15–20 minutes every 2–3 hours. After the acute swelling phase, use ice after activity or PT sessions as needed.
What is the best sleeping position after knee surgery?
On your back with the leg elevated slightly on a pillow under the calf — not under the knee. This keeps the knee in extension and prevents stiffness. Side sleeping with a pillow between knees is also acceptable.
When does pain peak after knee surgery?
After knee replacement, pain peaks at days 3–5 then gradually improves. After meniscus surgery, pain peaks at days 1–3. During physical therapy at weeks 3–6, pain may temporarily increase — this is expected.
Dr. Cyrus Abbasi, MD, PhD
Dr. Cyrus Abbasi, MD, PhD
Interventional Spine/Pain Management
Dr. Abbasi specializes in knee surgery and post-operative pain management. She contributes to PainAfter.com to help patients manage knee recovery effectively.