How to Align Chart X-Axis with Zero on Both Y-Axes in Excel
Question details
The user needs to align the zero point on the X-axis for both primary and secondary Y-axes in a dual-axis chart.

- Product
- Microsoft Excel / WPS Spreadsheet
- Device & OS
- not provided
- Scenario
- Creating a dual-axis chart where both data series contain positive and negative numbers, but the zero baseline doesn't match.
- Observed behavior
- Excel sets different automatic minimum and maximum bounds for the primary and secondary Y-axes, causing the zero lines to appear at different vertical positions.
Make sure your chart is already configured with both a primary and a secondary Y-axis, and identify the current maximum and minimum bounds applied to your primary Y-axis.
Manually Set Secondary Axis Bounds to Match the Primary Axis Ratio
Calculate the ratio of the maximum to minimum values on the primary axis, then apply matching proportional bounds to the secondary axis.
Excel aligns zero points automatically only when both axes use the exact same ratio between their upper and lower limits. By defining these limits manually, you force both axes to place the zero mark at the exact same horizontal position.
Right-click the primary Y-axis on the left side of your chart and select 'Format Axis'. Note the 'Minimum' and 'Maximum' bounds listed in the Axis Options.
Divide the maximum bound by the minimum bound. For example, if your primary axis limits are 120 and -40, the ratio is 120 / -40 = -3.
Look at the data range for your secondary axis. Choose a new maximum and minimum that share the exact same ratio of -3. For instance, if your secondary data peaks at 14, suitable limits would be 15 and -5 (since 15 / -5 = -3).
Right-click the secondary Y-axis on the right side of the chart and select 'Format Axis'. Under Axis Options, manually type your calculated values into the 'Maximum' and 'Minimum' bound fields.

Easily Align Chart Axes in WPS Spreadsheet
WPS Spreadsheet provides robust, easy-to-use chart formatting tools, making tasks like adjusting axis bounds and aligning zero points quick and highly accurate.
- 1. Open your workbook: Launch WPS Spreadsheet and open the document containing your dual-axis chart.
- 2. Access Axis Options: Double-click the primary Y-axis to immediately open the Axis Options pane on the right side of the screen.
- 3. Set the Bounds: Double-click the secondary Y-axis and manually enter your calculated Maximum and Minimum limits to match the primary axis ratio.
- 4. Save and share: Save your newly aligned chart in standard .xlsx format, ensuring it looks perfect on any device.

Frequently Asked Questions
Why do the zero lines separate when adding a secondary axis?
Excel calculates the minimum and maximum limits (bounds) for each axis independently based on its specific data range. If the numerical spread differs significantly, the zero position ends up scaled to a different vertical height on each axis.
Will I need to change these settings if my chart data updates?
Yes. Since you are changing the bounds from 'Auto' to fixed manual values, any significant updates to your data that push values beyond your set limits will require you to recalculate and input new bounds to maintain the zero alignment.
Is there a way to automate the alignment of both Y-axes?
Excel does not have a built-in toggle to automatically lock the zero points of a dual-axis chart. However, advanced users can use VBA macros to automatically calculate and update the secondary axis bounds whenever the worksheet data changes.
How do I add a secondary axis to my chart in the first place?
Right-click the specific data series you want to plot on the secondary axis (like a line on a column chart) and select 'Format Data Series'. In the side pane under Series Options, toggle the selection from 'Primary Axis' to 'Secondary Axis'.




