Calculating Calories Burned During a Workout

Tyler Byers
October 2014

The 'Calories Burned Calculator' App

Calculate Your Workout Calories

The Calories Burned Calculator, available at the Shiny Apps Page estimates the number of calories that the user burned during a workout.

  • User enters Gender, Age, and Weight (lb or kg).
  • If workout was steady-state, user enters Duration and Average Heart Rate, and the resulting calories burned appears.
  • If workout was multi-stage (legs of varying intensity), user can use “Add Leg” feature.
    • Calculator tracks total elapsed time for workout and total calories burned during workout.
    • Displays a chart of Calories Burned vs. Elapsed Time.
    • Displays table of stats for user.

Application Screen Shot

example

How Simple Exercise Calculation Works

Example: A 42-year-old Female weighing 145 lbs runs for 40 minutes at an average heart rate of 140 beats per minute (bpm). The user enters her information into the app. The app then calculates her weight in kg and calculates the calories she burned:

mf <- 0; wtlb <- 145; wtkg <- wtlb*0.453592; 
hr <- 140; duration = 40; age <- 40
cals <- (mf*(-55.0969 + 0.6309*hr + 0.1988*wtkg + 0.2017 * age) + (1-mf)*(-20.4022+0.4472*hr - 0.1263*wtkg + 0.074 * age)) *  duration/4.184
paste0('Using the above information, I calculate that you burned ', round(cals,1), ' calories.')
[1] "Using the above information, I calculate that you burned 352.4 calories."

Source of equation: Journal of Sports Sciences

Multi-Leg Exercise

Example: A 25-year-old Male weighing 140 lbs wants to know how many calories he burned during a short interval workout. He warmed up for 10 minutes at 120 bpm, then ran for 20 minutes at 145 bpm. Next, he ran 5 minutes at 170 bpm, and finally cooled down at 110 bpm for 15 minutes. He enters his stats into the calculator to obtain the following chart.

plot of chunk chart