logo
search
Chart & Visualization Issues

How to Calculate Separate Areas Under Merged Peaks in Excel

Maira MehtabMaira Mehtab Sep 21, 2026 870 views

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.
Before you start

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.

Solution 1Recommended

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.

1
Set up parameter cells

Create dedicated cells for the Amplitude, Mean, and Standard Deviation for both Peak 1 and Peak 2.

2
Calculate Gaussian curves

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.

3
Model the merged peak

Create a total column that sums the calculated Y values of Peak 1 and Peak 2 for each data point.

4
Calculate the error

Create another column to calculate the squared difference between your actual UV-Vis Y values and the modeled merged peak values.

5
Run Excel Solver

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.

6
Calculate the final areas

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.

Solver Add-in Required: If you do not see Solver on your Data tab, you must enable it first by going to File > Options > Add-ins > Manage Excel Add-ins.
Efficient Data Analysis with WPS Office

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. 1. Import Your Data: Open WPS Spreadsheet and paste your X (wavelength) and Y (absorbance) UV-Vis data into columns A and B.
  2. 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. 3. Determine Peak Areas: Use the =SUM() function to add up the specific intervals representing the impurity peak and the analyzed compound peak.
Fully compatible with Microsoft Excel formulas like SUM and trapezoidal calculations.Includes a powerful built-in Solver tool for advanced Gaussian curve fitting.Lightweight architecture processes large datasets of spectroscopy data smoothly.Free to use with a familiar, easy-to-navigate tabbed interface.
microsoft office alternative - wps office

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.