How to Calculate Separate Areas Under Merged Peaks in Excel
Question details
The user needs to calculate the individual areas of two overlapping peaks, representing an impurity and an analyzed compound, from UV-Vis data imported into Excel.
- Product
- Microsoft Excel
- Device & OS
- not provided
- Scenario
- Analyzing UV-Vis spectroscopy data where two peaks merge or overlap, requiring separate area calculations.
- Observed behavior
- Excel charts do not automatically calculate the area under a curve, requiring manual mathematical methods like curve fitting or the trapezoidal rule.
Ensure your UV-Vis data is organized sequentially with X-axis values (wavelength) in one column and Y-axis values (absorbance) in the adjacent column. If you plan to use curve fitting, verify that the Solver add-in is activated in your spreadsheet settings.
Use Gaussian Curve Fitting and Excel Solver
Fit the merged curve with multiple Gaussian curves to mathematically separate the overlapping peaks, allowing you to calculate the area of each individual peak.
This method is ideal for overlapping peaks because it models the underlying individual curves rather than just measuring the total visible area.
You will need to set up initial estimates for the amplitude, mean, and standard deviation of each peak before using Solver.
Create dedicated cells for the Amplitude, Mean, and Standard Deviation for both Peak 1 and Peak 2.
In new columns, use the Gaussian formula to calculate the Y values for Peak 1 and Peak 2 based on the X values and your parameter cells.
Create a total column that sums the calculated Y values of Peak 1 and Peak 2 for each data point.
Create another column to calculate the squared difference between your actual UV-Vis Y values and the modeled merged peak values.
Open Solver from the Data tab. Set the objective to minimize the sum of the squared differences by changing the parameter cells for both peaks.
Once Solver optimizes the parameters, calculate the area of each peak using the standard Gaussian integral formula based on the finalized amplitude and standard deviation.
Apply the Trapezoidal Method Using Formulas
Calculate the area under the curve between adjacent data points using a basic geometric formula, then sum the areas for each peak segment.
Calculate Area Under Curve Easily with WPS Spreadsheet
WPS Spreadsheet provides powerful data analysis tools, full compatibility with advanced mathematical formulas, and built-in Solver capabilities to help you process complex UV-Vis spectroscopy data seamlessly.
- 1. Import Your Data: Open WPS Spreadsheet and paste your X (wavelength) and Y (absorbance) UV-Vis data into columns A and B.
- 2. Calculate Segment Areas: Enter the trapezoidal formula =(B2+B3)/2*(A3-A2) in column C and drag the fill handle down to calculate the area for each data interval.
- 3. Determine Peak Areas: Use the =SUM() function to add up the specific intervals representing the impurity peak and the analyzed compound peak.

Frequently Asked Questions
Can Excel automatically calculate the area under a chart curve?
No, Excel charts do not have a built-in one-click tool to calculate the area under a curve. You must use mathematical formulas in the spreadsheet cells, such as the trapezoidal rule or integral calculus methods.
How do I enable the Solver add-in for curve fitting?
Go to File > Options > Add-Ins. In the Manage dropdown at the bottom, select Excel Add-ins and click Go. Check the box for Solver Add-in and click OK to add it to your Data tab.
What is the trapezoidal rule formula in Excel?
Assuming your X values are in column A and Y values are in column B, the formula to calculate the area between two adjacent rows (e.g., row 2 and row 3) is =(B2+B3)/2*(A3-A2).
Why should I use Gaussian fitting instead of the trapezoidal method for merged peaks?
The trapezoidal method only measures the total visible area and cannot accurately assign the shared area where peaks overlap. Gaussian fitting mathematically models each underlying peak, allowing you to calculate the true area of each distinct compound even when they merge.




