Skip to content
AICPA-CIMA
  • AICPA & CIMA:
  • Home
  • Engage 365 Communities
  • CPE & Learning
  • My Account
Journal of Accountancy
  • TECH & AI
    • All articles
    • Artificial Intelligence (AI)
    • Microsoft Excel
    • Information Security & Privacy

    Latest Stories

    • Why AI needs to show its work
    • How firms make AI adoption work for them
    • Sales tax doesn’t have to be this hard

  • TAX
    • All articles
    • Corporations
    • Employee benefits
    • Individuals
    • IRS procedure

    Latest Stories

    • IRS expands Tax Pro Account to allow payments on behalf of business clients
    • IRS announces inflation adjustments for tax year 2027
    • Why AI needs to show its work
  • PFP
  • PRACTICE MANAGEMENT
    • All articles
    • Diversity, equity & inclusion
    • Human capital
    • Firm operations
    • Practice growth & client service

    Latest Stories

    • IRS expands Tax Pro Account to allow payments on behalf of business clients
    • U.S. employee engagement falls below 30% for first time in 15 years
    • IRS announces inflation adjustments for tax year 2027
  • FINANCIAL REPORTING
    • All articles
    • FASB reporting
    • IFRS
    • Private company reporting
    • SEC compliance and reporting

    Latest Stories

    • SEC proposal aims to clarify securities rules for crypto assets
    • SEC eyes e-delivery as the default over paper
    • SEC shares 3 goals in proposed 2026–2030 strategic plan
  • AUDIT
    • All articles
    • Attestation
    • Audit
    • Compilation and review
    • Peer review
    • Quality Management

    Latest Stories

    • AI raises the stakes for auditor judgment
    • How CPAs are putting AI to work in audits
    • Center for Audit Quality taps Dave Sullivan as CEO
  • MANAGEMENT ACCOUNTING
    • All articles
    • Business planning
    • Human resources
    • Risk management
    • Strategy

    Latest Stories

    • U.S. employee engagement falls below 30% for first time in 15 years
    • Risk response often doesn’t match the threat or the opportunity
    • Confidence in U.S. economy rises despite inflation concerns
  • Home
  • News
  • Magazine
  • Podcast
  • Topics
Advertisement
  1. newsletter
  2. Extra Credit
Extra Credit Cover

Performing a simple linear regression in Excel

By Wendy Tietz, CPA, Ph.D.; Jennifer Cainas, CPA, DBA; and Tracie Miller-Nobles, CPA
November 9, 2021

TOPICS

  • Technology
    • Microsoft Excel
  • Accounting Education

When teaching cost behavior in a managerial or cost accounting course, we explain that there are various methods a company can use to estimate its fixed and variable costs, including regression analysis. The next time you cover this topic, consider teaching students how to perform a simple linear regression analysis in Excel.  Below is an example screenshot illustrating 12 months of cost data for a restaurant.  

ec1-regression-analysis-example

To perform a simple linear regression to estimate the restaurant’s fixed and variable costs, perform the following steps.  

Step 1: Click on the Data tab, and then click Data Analysis (in the Analysis group). (Note: If you don’t have the Data Analysis option, you will need to install the Analysis ToolPak add-in. See our previous article on how to do this.)

ec2-data-analysis

Step 2: Select Regression and then click OK.

ec3-regression

Step 3: In the Regression dialog box that pops up, you must identify your Y variable, which is the dependent variable. In this example the dependent variable is the “total costs” column. Select the data in this column.

ec4-regression-input-y-range

Step 4: You must also identify your X variable, which is your independent variable. In this example the independent variable is the “# of meals” column. Select the data in this column, then click OK. 

ec5-regression-input-x-range

The default option is for the regression results to be inserted into a new worksheet. You will see the results in a different place if you have selected a different output option. We chose to have the regression results inserted into Sheet2 of our workbook, and the results are below:  

Advertisement
ec6-summary-output

Now that you have the regression results, you can discuss with the students the key pieces of information being displayed, including the coefficients (the intercept representing the fixed costs, and the X variable 1 representing the variable costs) and how to interpret the R square and adjusted R square values.

The next time you teach cost behavior, consider expanding your students’ Excel skills by teaching them how to perform a simple linear regression, one of the many options within the Data Analysis function.

— Wendy Tietz, CPA, CGMA, Ph.D., is a professor of accounting at Kent State University in Kent. Ohio; Jennifer Cainas, CPA, DBA, is a clinical professor at the University of South Florida in Tampa; and Tracie Miller-Nobles, CPA, is an associate professor of accounting at Austin Community College in Austin, Texas. See their site AccountingIsAnalytics.com for resources they have developed for teaching data analytics in introductory accounting. To comment on this article or to suggest an idea for another article, contact senior editor Courtney Vien at Courtney.Vien@aicpa-cima.com.

Advertisement

latest news

November 6, 2026

IRS expands Tax Pro Account to allow payments on behalf of business clients

November 6, 2026

U.S. employee engagement falls below 30% for first time in 15 years

November 5, 2026

IRS announces inflation adjustments for tax year 2027

November 4, 2026

FASB proposes simpler approach for equity-linked contracts

November 3, 2026

AICPA proposes ethics guidance for alternative practice structures

Advertisement

Most Read

AI and the audit: AICPA publishes practice aid to assist auditors
Social Security wage base and COLA announced for 2027
IRS announces inflation adjustments for tax year 2027
AICPA partners on new offering that assures AI systems and agents
Using an Excel agent to clean, validate, and reconcile data
Advertisement

Podcast

November 5, 2026

Building a career defined by impact, not accolades or titles

October 29, 2026

Turning risk intelligence into strategic advantage

October 22, 2026

Why finance leaders don’t need to have all the answers

Features

AI raises the stakes for auditor judgment
AI raises the stakes for auditor judgment

AI raises the stakes for auditor judgment

How CPAs are putting AI to work in audits
How CPAs are putting AI to work in audits

How CPAs are putting AI to work in audits

How to craft the CPA career you want
How to craft the CPA career you want

How to craft the CPA career you want

Not-for-profit pay faces broader tax risk
Not-for-profit pay faces broader tax risk

Not-for-profit pay faces broader tax risk

Why AI needs to show its work
Accordance

Why AI needs to show its work

How firms make AI adoption work for them
How firms make AI adoption work for them

How firms make AI adoption work for them

Sales tax doesn’t have to be this hard
Sales tax doesn’t have to be this hard

Sales tax doesn’t have to be this hard

SPONSORED REPORT

Get your clients ready for tax season

Help clients avoid surprises with year-end planning strategies for managing taxable income, maximizing deductions, and adjusting to OBBBA changes affecting individuals and businesses.

From The Tax Adviser

October 31, 2026

AI risks to the Sec. 7525 practitioner privilege

September 30, 2026

Navigating the QSBS rules in pass-through structures

September 30, 2026

Sec. 338(h)(10) elections in business acquisitions

August 31, 2026

2026 tax software survey

MAGAZINE

November 2026

November 2026

November 2026
October 2026

October 2026

October 2026
September 2026

September 2026

September 2026
August 2026

August 2026

August 2026
July 2026

July 2026

July 2026
June 2026

June 2026

June 2026
May 2026

May 2026

May 2026
April 2026

April 2026

April 2026
March 2026

March 2026

March 2026
February 2026

February 2026

February 2026
January 2026

January 2026

January 2026
December 2025

December 2025

December 2025
view all

View All

http://JofA_Default_Mag_cover_small_official_blue

PUSH NOTIFICATIONS

Learn about important news

This quick guide walks you through the process of enabling and troubleshooting push notifications from the JofA on your computer or phone.

CPA LETTER DAILY EMAIL

CPA Letter Logo

Subscribe to the daily CPA Letter

Stay on top of the biggest news affecting the profession every business day. Follow this link to your marketing preferences on aicpa-cima.com to subscribe. If you don't already have an aicpa-cima.com account, create one for free and then navigate to your marketing preferences.

Connect

  • X Logo JofA on X
  • facebook JofA on Facebook

HOME

  • News
  • Monthly issues
  • Podcast
  • A&A Focus
  • PFP Digest
  • Academic Update
  • Topics
  • RSS feed rss feed
  • Site map

ABOUT

  • Contact us
  • Advertise
  • Submit an article
  • Editorial calendar
  • Privacy policy
  • Terms & conditions

SUBSCRIBE

  • Academic Update
  • CPE Express

AICPA & CIMA SITES

  • AICPA-CIMA.com
  • Global Engagement Center
  • Financial Management (FM)
  • The Tax Adviser
  • AICPA Insights
  • Global Career Hub
AICPA & CIMA

© 2026 Association of International Certified Professional Accountants. All rights reserved.

Reliable. Resourceful. Respected.