diff --git a/src/USER-TALLY/compute_force_tally.cpp b/src/USER-TALLY/compute_force_tally.cpp
index d4bcb0158dcfa7fb48b8837c219b13b79d682fce..cb7e3a4f23e54d1086b53bad14fba071c31e3dad 100644
--- a/src/USER-TALLY/compute_force_tally.cpp
+++ b/src/USER-TALLY/compute_force_tally.cpp
@@ -111,7 +111,6 @@ void ComputeForceTally::pair_tally_callback(int i, int j, int nlocal, int newton
                                             double, double, double fpair,
                                             double dx, double dy, double dz)
 {
-  const int ntotal = atom->nlocal + atom->nghost;
   const int * const mask = atom->mask;
 
   if ( ((mask[i] & groupbit) && (mask[j] & groupbit2))
diff --git a/src/USER-TALLY/compute_heat_flux_tally.cpp b/src/USER-TALLY/compute_heat_flux_tally.cpp
index 7834bdb0039579f6cf07df9891bd7a332e072547..65f57b7678096e5a066f3710a54f2c4f70faedd3 100644
--- a/src/USER-TALLY/compute_heat_flux_tally.cpp
+++ b/src/USER-TALLY/compute_heat_flux_tally.cpp
@@ -121,7 +121,6 @@ void ComputeHeatFluxTally::pair_tally_callback(int i, int j, int nlocal, int new
                                              double evdwl, double ecoul, double fpair,
                                              double dx, double dy, double dz)
 {
-  const int ntotal = atom->nlocal + atom->nghost;
   const int * const mask = atom->mask;
 
   if ( ((mask[i] & groupbit) && (mask[j] & groupbit2))
diff --git a/src/USER-TALLY/compute_pe_tally.cpp b/src/USER-TALLY/compute_pe_tally.cpp
index f378a5e6b58caa8ab8ff1f2dd8581efe5c96ec1d..e7c0bdd03cca25e152d24ef35df936edcede0fd9 100644
--- a/src/USER-TALLY/compute_pe_tally.cpp
+++ b/src/USER-TALLY/compute_pe_tally.cpp
@@ -109,7 +109,6 @@ void ComputePETally::pair_tally_callback(int i, int j, int nlocal, int newton,
                                          double evdwl, double ecoul, double,
                                          double, double, double)
 {
-  const int ntotal = atom->nlocal + atom->nghost;
   const int * const mask = atom->mask;
 
   if ( ((mask[i] & groupbit) && (mask[j] & groupbit2))
diff --git a/src/USER-TALLY/compute_stress_tally.cpp b/src/USER-TALLY/compute_stress_tally.cpp
index 7373d53fd5ad195a0f24d8f2ffd20256b44c4ba3..28baafb9f8f451f37771ea84d3e4a1b432fcb62f 100644
--- a/src/USER-TALLY/compute_stress_tally.cpp
+++ b/src/USER-TALLY/compute_stress_tally.cpp
@@ -113,7 +113,6 @@ void ComputeStressTally::pair_tally_callback(int i, int j, int nlocal, int newto
                                              double, double, double fpair,
                                              double dx, double dy, double dz)
 {
-  const int ntotal = atom->nlocal + atom->nghost;
   const int * const mask = atom->mask;
 
   if ( ((mask[i] & groupbit) && (mask[j] & groupbit2))