Skip to main content
v2026.11,986 entries · CC-BY 4.0

Cronbach’s Alpha in R: psych::alpha() Step by Step

Run psych::alpha() on your scale items in R, set reverse keys, bootstrap intervals and read every output column, with a warning-by-warning fix table.

Written and maintained by CASRAI Editorial Board

Published

On this page

To calculate Cronbach’s alpha in R, install the psych package, load it with library(psych) and pass a data frame that holds only the items of one scale to alpha(), for example alpha(my_items). The function returns raw alpha, standardized alpha, Guttman’s λ6, the average and median inter-item correlation, and item-level statistics that show what happens to alpha when each item is dropped. This guide walks through the call, the arguments that change the result, how to read each part of the output, and what to do when R prints a warning.

What Cronbach’s alpha in R is used for in research

Alpha is one of several estimates of the internal consistency reliability of a test or questionnaire scale. The psych documentation describes it as the most frequently reported measure of internal consistency, partly because it is easy to calculate and available in most statistical programs. Researchers report it for multi-item scales such as attitude, symptom or satisfaction measures, usually in the methods or measurement section of a paper. For the concept itself, including the history and the wider family of reliability coefficients, see the CASRAI guide on Cronbach’s alpha and the overview of reliability in research measurement.

What is Cronbach’s alpha in research?

It is a coefficient, introduced by Cronbach in 1951, that summarizes how consistently the items of a scale vary together. The psych documentation gives the calculation as n/(n−1) × (1 − tr(V)/Vx), where n is the number of items, tr(V) is the sum of the item variances and Vx is the variance of the total score. It is the same quantity as Guttman’s λ3, and the documentation also describes it as the mean of all possible split-half reliabilities, corrected for test length. For dichotomous items it generalizes the older Kuder-Richardson KR20 coefficient.

What alpha does and does not tell you

The psych help page states that alpha underestimates the reliability of a test and overestimates the first factor saturation. It is a reasonable estimate of the first factor saturation for a unifactorial test, but when a test has “microstructure” (the documentation’s word is “lumpy”), coefficients such as ωh and ωt from omega() are more appropriate. A high alpha therefore does not prove that a scale measures one thing. The documentation’s own examples include two independent factors that produce reasonable alphas, described as a case where alpha is a poor indicator of unidimensionality.

How to install or access the psych package

Cronbach’s alpha is not part of base R. The alpha() function is in the psych package, which is published on CRAN, the Comprehensive R Archive Network. The CRAN package page lists William Revelle as maintainer, a GPL-2 or GPL-3 licence, and version 2.6.9, published 2026-09-30, on 2026-11-20. The argument list in this guide is taken from the psych alpha help page on the R project’s documentation search site, which documents version 2.4.6.26; run ?alpha after installing to see the arguments of the version you have.

  1. Open R or RStudio.
  2. Install the package once: install.packages("psych"). The R Installation and Administration manual notes that for most users it suffices to call install.packages(pkgname), and that a character vector of names installs several packages in one call.
  3. Load it in every new session: library(psych).
  4. Open the help page with ?alpha.

If you use the psych package for other work, such as factor analysis, you will already have the function.

How to calculate Cronbach’s alpha in R step by step

The steps below use your own survey data. Replace the column names with those in your file.

  1. Select only the items of one scale. Alpha is computed for every column you pass, so subset first: my_items = survey[, c("q1", "q2", "q3", "q4", "q5")]. Leave out identifiers, grouping variables and items that belong to a different scale. If a questionnaire has several subscales, run the function once per subscale.
  2. Check that the object is a data frame or matrix. The help page says alpha() expects a data.frame or matrix. A covariance or correlation matrix is also accepted as x. A tibble returned by dplyr can trigger an error, and the documented fix is to change the class: my_items = as.data.frame(my_items).
  3. Run the function. a = alpha(my_items), then print it with a. The default arguments are keys=NULL, check.keys=FALSE, n.iter=1, na.rm=TRUE, delete=TRUE and use="pairwise".
  4. Handle reverse-keyed items. If some items are worded in the opposite direction, name them: alpha(my_items, keys=c("q3")). The help page says items can be specified by name or by position. The alternative is alpha(my_items, check.keys=TRUE), which reverses items according to the sign of their loading on the first principal component.
  5. Add confidence intervals by bootstrapping. alpha(my_items, n.iter=1000) resamples the data when n.iter is greater than 1 (1000 is an example value, not a rule). The 2.5% and 97.5% bounds are stored in a$boot.ci.
  6. Extract just the numbers you need. a$total$raw_alpha and a$total$std.alpha hold the two alphas; summary(a) prints only the alpha values, as the help page’s own example notes.

A reproducible example with simulated items

The psych help page includes an example that needs no data file because it simulates item responses. It runs the following code, which you can paste into a fresh session to confirm that the function works before you use your own data.

library(psych)
set.seed(42)
items = sim.congeneric(N = 500, short = FALSE, low = -2, high = 2,
                        categorical = TRUE)
a4 = alpha(items$observed)
a4
summary(a4)

The call simulates 500 responses to four items with five categories each, so the results will be identical on every machine that uses the same seed and package version. The help page also contains a two-factor example, two.f = sim.item(8), run with alpha(two.f, keys=c("V3","V4","V5","V6")) and with check.keys=TRUE, which shows reverse keying by name and automatically.

How missing data are handled

By default na.rm=TRUE and correlations are calculated pairwise (use="pairwise"). Participant scores are, by default, the average of the items that person answered, so if items are missing the score reflects only those answered. The help page warns that this is particularly problematic with total scores (cumulative=TRUE) and points to scoreItems() for imputation using means or medians.

How to read the alpha() output

The printed object has several parts; the data table below lists each element, where to find it and what the documentation says it reports. The rest of this section explains how to use them.

Start with the total block

raw_alpha is computed from covariances, so the help page notes it is sensitive to differences in item variances. std.alpha is computed from correlations and corresponds to what you would obtain after standardizing the items. If the two differ a lot, the items are on very different spreads. Report the one that matches your scoring: raw alpha if you sum or average the items as scored, standardized alpha if you will standardize before combining.

Compare average_r with median_r. The documentation states that if the mean and median inter-item correlation differ much, that is a sign the scale is not particularly homogeneous. In the two-factor example the help page notes that the median is much less than the average correlation, which suggests, correctly, that a one-factor model is probably wrong.

Then read the item-level tables

alpha.drop repeats the total statistics with each item removed in turn, so a rise in alpha after removing an item flags that item as a candidate for review. item.stats gives four item-whole correlations. Per the help page, raw.r correlates the item with the whole scale without correcting for item overlap; r.drop correlates the item with the scale made from the remaining items; r.cor corrects for item overlap using the squared multiple correlation. The documentation notes that overlap inflates raw.r, so r.drop is the more conservative choice when you screen items. The same idea underlies the item-total correlation approach to scale purification.

Is a Cronbach’s alpha of 0.6 considered acceptable?

It depends on the field and the purpose, and it is below the range most often quoted. Tavakol and Dennick (2011) report that acceptable values of alpha range from 0.70 to 0.95, and that a maximum value of 0.90 has been recommended. They also state that if alpha is too high it may suggest that some items are redundant. A value of 0.6 should therefore be reported as it is, with a note on the number of items, because alpha rises with the number of items and with their inter-relatedness. The performance package documentation offers an alternative for scales with alpha below 0.7: the mean inter-item correlation, where 0.2 to 0.4 is described as satisfactory.

How to improve Cronbach’s alpha value?

Improve the scale rather than the number. Tavakol and Dennick list these actions for a low alpha: check the item-total correlations and revise or drop weak items, add items that measure the same concept, and calculate alpha separately for each concept if the scale is multidimensional. In R, alpha.drop and the r.drop column point to weak items. The performance package function check_itemscale() reports item discrimination (corrected item-total correlation), which its documentation says should be at least 0.20, with negative values suggesting that an item needs reverse-coding. Removing items only to raise alpha, without a substantive reason, changes the instrument you are reporting, so state any removal in the paper.

What does the alpha function do in R?

It takes the item responses, forms a total score for each respondent, estimates the variance shared among items and returns the reliability estimates above together with item statistics, response frequencies, respondent scores (scores) and, if requested, bootstrap results. The help page says the scores are the average response across all items a participant took unless cumulative=TRUE, in which case they are sums.

Troubleshooting alpha() warnings

Each row of the table below comes from the psych help page for alpha().

Symptom Cause per the documentation What to do
A warning that some items may need to be reversed The default is check.keys=FALSE, so R warns rather than reverses. Earlier versions defaulted to TRUE, but users could find alpha without noticing that items had been reversed. Decide which items are reverse-worded. Pass them in keys or set check.keys=TRUE and inspect which items were flipped.
Warnings you do not want in a log The reverse-item messages can be suppressed. Set warnings=FALSE only after you have resolved the reversal question.
A message that a variable was dropped With delete=TRUE, items with no variance are dropped with a warning. They do not contribute to reliability but still contribute to the total score. Remove constant columns before the call so the score and alpha describe the same items.
An error when the data came from dplyr dplyr data frames carry three extra classes, and alpha() expects a plain data.frame or matrix. Run as.data.frame() on the input.
Reversed items give odd scores when item ranges differ Reversed items are subtracted from the minimum plus the maximum response taken over all items, so items with intentionally different ranges are off by a constant. Use scoreItems() for scales whose items have different response ranges.
Confidence intervals look too narrow Standard errors for raw alpha use the Duhachek and Iacobucci (2004) equations, and the help page says some simulations suggest they are too small. Interval methods that assume normal theory differ for small samples. Use bootstrapped intervals with n.iter above 1.
High alpha but mean and median inter-item r differ The scale may not be homogeneous. Inspect the structure with factor analysis, and consider omega().

Free alternatives to psych::alpha()

Several routes give the same coefficient or a more suitable one. The table lists only options documented on the sources read for this guide.

Option What it provides When it fits
performance::cronbachs_alpha() The performance package documents it as computing Cronbach’s alpha for all variables in a matrix or data frame, with item_alpha() as an alias. You already use the performance package, or want a short call that returns a single value.
performance::check_itemscale() Item discrimination, and the mean inter-item correlation as an alternative when alpha is below 0.7. You are screening items of a scale.
psych::omega() ωh and ωt from a hierarchical factor analysis, recommended on the psych help page for tests with microstructure. The scale may be multidimensional.
psych::scoreItems() Scores for multiple scales, with imputation by mean or median. You score several subscales at once, or have missing data.
SPSS A commercial program that also reports the coefficient. See the CASRAI guide to Cronbach’s alpha in SPSS. Your team works in SPSS; check your licence terms.

For dichotomous items, the psych documentation notes that alpha generalizes Kuder and Richardson’s KR20, and for a single split of a test you can compare it with split-half reliability.

Frequently asked questions

What is Cronbach’s alpha in research?

It is the most widely reported coefficient of internal consistency reliability for a multi-item scale. It rises with the number of items and with how strongly they correlate, and it does not by itself show that a scale is unidimensional.

What does the alpha function do in R?

The alpha() function in the psych package computes raw and standardized alpha, Guttman’s λ6, inter-item correlation summaries and item statistics from a data frame, matrix or covariance matrix, and can reverse items and bootstrap confidence intervals.

Is a Cronbach alpha of 0.6 considered acceptable?

Tavakol and Dennick give 0.70 to 0.95 as the acceptable range, so 0.6 falls below it. Report the value with the number of items and consider the inter-item correlation, as described above.

How to improve Cronbach’s alpha value?

Review items with weak item-total correlations, add items measuring the same concept, and compute alpha separately when the scale covers more than one concept. A value above about 0.90 may signal redundant items.

Sources

Data: Elements returned by psych::alpha() and what each reports

A compilation of the main components of the object returned by the alpha() function in the R psych package, listing where each sits in the output, what it reports and the documented caveat. Compiled from the psych alpha() help page on the R project documentation site.

Period covered: 2026.

Elements returned by psych::alpha() and what each reports
Output elementComponentWhat it reportsDocumented note
raw_alphatotalAlpha based on the covariancesSensitive to differences in item variances
std.alphatotalStandardized alpha based on the correlationsDiffers from raw alpha when item variances differ
G6(smc)totalGuttman's Lambda 6 reliabilityGreater than alpha for lumpy tests
average_rtotalAverage inter-item correlationCompare with median_r
median_rtotalMedian inter-item correlationA large gap from average_r signals a scale that is not homogeneous
alpha.dropalpha.dropTotal statistics with each item removed one by oneUse to find items that lower alpha
raw.ritem.statsItem-total correlation, not corrected for item overlapInflated by item overlap
r.dropitem.statsCorrelation of the item with the scale without that itemScale differs for each item
r.coritem.statsItem-whole correlation corrected for item overlap and scale reliabilityUses the squared multiple correlation
scoresscoresAverage response per participant across the items takenSum scores if cumulative=TRUE
boot.ciboot.ciLower, median and upper 95% bootstrap intervalOnly when n.iter is above 1

Sources

Compiled by CASRAI from the sources above. Free to reuse under CC BY 4.0 with attribution.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · full access

Ask about Cronbach’s Alpha in R: psych::alpha() Step by Step

Full access: large monthly usage, up to 10 source passages behind each answer, and MCP and API access for Claude Code, Codex and other CLIs. Cancel any time.

An AI assistant for research: funder rules, compliance, methods and publishing. It links the sources behind its answers and labels answers that come from a web search.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays open to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →