diff --git a/Framework/HistogramData/inc/MantidHistogramData/HistogramBuilder.h b/Framework/HistogramData/inc/MantidHistogramData/HistogramBuilder.h
index f99d3a7b5860c4a64771631edff0321c23636c1b..a7f0ee9ad0fc379924192e7d9487d7332dc79ab0 100644
--- a/Framework/HistogramData/inc/MantidHistogramData/HistogramBuilder.h
+++ b/Framework/HistogramData/inc/MantidHistogramData/HistogramBuilder.h
@@ -50,6 +50,10 @@ public:
   template <typename... T> void setE(T &&... data) {
     m_e = Kernel::make_cow<HistogramE>(std::forward<T>(data)...);
   }
+  /// Sets Dx information. Can be a length or actual Dx data.
+  template <typename... T> void setDx(T &&... data){
+    d_x = Kernel::make_cow<HistogramDx>(std::forward<T>(data)...);
+  }
   void setDistribution(bool isDistribution);
 
   Histogram build() const;
@@ -59,6 +63,7 @@ private:
   Kernel::cow_ptr<HistogramX> m_x{nullptr};
   Kernel::cow_ptr<HistogramY> m_y{nullptr};
   Kernel::cow_ptr<HistogramE> m_e{nullptr};
+  Kernel::cow_ptr<HistogramDx> d_x{nullptr};
 };
 
 } // namespace HistogramData
diff --git a/Framework/HistogramData/src/HistogramBuilder.cpp b/Framework/HistogramData/src/HistogramBuilder.cpp
index 44932841a90525b7cff29dd9a7823077e066c321..6f43a9f72df01ab63eed66be6551c279149e2254 100644
--- a/Framework/HistogramData/src/HistogramBuilder.cpp
+++ b/Framework/HistogramData/src/HistogramBuilder.cpp
@@ -34,6 +34,8 @@ Histogram HistogramBuilder::build() const {
   }
   if (m_e)
     histogram->setSharedE(m_e);
+  if (d_x)
+    histogram->setSharedDx(d_x);
   return *histogram;
 }