E/M level calculator for office visits: MDM or time
By Medical Coding Hub · Published
Since 2021, an office visit is leveled one of two ways: by medical decision making (MDM) or by total time on the date of the encounter. MDM has three elements, and the rule that trips people up is that only two of the three have to reach a level. One strong element cannot carry the visit alone, and one weak element cannot sink it. Change the selections below and watch which two elements set the code.
Not billing, coding or legal advice.This page is a learning aid built from the public sources listed below. Payers, contracts and code sets change; check the current official guidelines and your payer’s policy before you bill. It stores nothing you enter, and you should never type real patient information into it.
Medical decision making: two of three elements must be met or exceeded
Sorted, the three elements are Low, Moderate, Moderate. The middle one is the level two elements reach: Moderate MDM.
You may select the level by either method. Here MDM supports the higher code, 99214, provided the note documents it.
The rule, written as math
Give each element a level from 1 (straightforward) to 4 (high). Because two of the three must be met or exceeded, the visit level is the median, the middle value once the three are sorted:
MDM level = median(problems, data, risk)
Problems moderate, data limited, risk moderate gives moderate. Problems high, data minimal, risk low gives low: the single high element is not enough. If total time supports a higher level than MDM, or the reverse, either may be used, as long as the note documents the basis.
Codes and time thresholds
| MDM level | New patient | Minutes (met or exceeded) | Established patient | Minutes (met or exceeded) |
|---|---|---|---|---|
| Straightforward | 99202 | 15 | 99212 | 10 |
| Low | 99203 | 30 | 99213 | 20 |
| Moderate | 99204 | 45 | 99214 | 30 |
| High | 99205 | 60 | 99215 | 40 |
99211 is the exception: an established patient visit that may not require the presence of a physician or other qualified health care professional. It has no MDM level and no time threshold. A patient is new when they have had no professional services from the physician, or from another physician of the exact same specialty and subspecialty in the same group practice, within the past three years.
The three elements, in plain words
1. Number and complexity of problems addressed
A problem counts when it is evaluated or treated at the encounter, not merely listed. A chronic illness is “stable” only when the patient is at their treatment goal; a patient with persistently uncontrolled blood pressure is not stable even if nothing has changed.
| Level | Any one of these |
|---|---|
| Straightforward | 1 self-limited or minor problem |
| Low | 2 or more self-limited or minor problems; 1 stable chronic illness; 1 acute, uncomplicated illness or injury; 1 stable acute illness |
| Moderate | 1 or more chronic illnesses with exacerbation, progression or side effects of treatment; 2 or more stable chronic illnesses; 1 undiagnosed new problem with uncertain prognosis; 1 acute illness with systemic symptoms; 1 acute, complicated injury |
| High | 1 or more chronic illnesses with severe exacerbation, progression or side effects of treatment; 1 acute or chronic illness or injury that poses a threat to life or bodily function |
The table also lists one hospital-setting entry at the low level (an acute, uncomplicated illness or injury requiring hospital inpatient or observation level of care), left out of this office-visit calculator.
2. Amount and complexity of data reviewed and analyzed
| Level | Requirement |
|---|---|
| Straightforward | Minimal or none. |
| Low (limited) | One of two: any combination of 2 unique tests ordered, test results reviewed or prior external notes reviewed; or an assessment requiring an independent historian. |
| Moderate | One of three categories: (1) any combination of 3 from tests ordered, results reviewed, external notes reviewed and independent historian; (2) independent interpretation of a test performed by another professional; (3) discussion of management or test interpretation with an external professional or appropriate source. |
| High (extensive) | Two of the same three categories. |
Three details change counts in practice. Ordering a test includes reviewing its result, so the same test is not counted twice. A test you bill the interpretation for yourself does not count as data. And an independent historian is someone such as a parent, guardian or witness who supplies history the patient cannot reliably give; translation does not qualify.
3. Risk of complications, morbidity or mortality of patient management
Risk is about the management decisions made at the visit, including options considered but not selected after shared decision making. The examples in the AMA table are examples only. The ones most often relied on in an office are prescription drug management (moderate) and a decision regarding hospitalization (high).
Where this calculator stops
- Prolonged services. When time is used and it runs well past the top code, CPT has add-on code 99417 and Medicare has its own code, G2212, with different starting points: CMS lists 89 minutes or more for 99205 and 69 minutes or more for 99215 before the first unit of G2212. Check the CMS booklet in the sources.
- Other settings. Hospital, emergency department, nursing facility and home visits use the same MDM table but different codes and times. This page covers office or other outpatient visits only.
- Medical necessity.A level supported by the table still has to be medically necessary for the patient’s condition, and the documentation has to show the work. The calculator cannot judge either.
Questions people ask
How is the level of an office visit chosen since 2021?
For office or other outpatient visits (99202-99215) the level is chosen by either the level of medical decision making or the total time the physician or other qualified health care professional personally spent on the date of the encounter. History and exam must be medically appropriate but no longer count toward the level.
What does "2 of 3" mean in medical decision making?
MDM has three elements: the number and complexity of problems addressed, the amount and complexity of data reviewed and analyzed, and the risk of patient management. To qualify for a level, two of the three elements must meet or exceed that level, so the visit level is the middle value of the three.
How many minutes are needed for 99213 and 99214?
When total time on the date of the encounter is used, 20 minutes must be met or exceeded for 99213 and 30 minutes for 99214. For 99212 it is 10 minutes and for 99215 it is 40. New patient visits 99202-99205 need 15, 30, 45 and 60 minutes.
What time counts toward total time?
Time personally spent by the physician or other qualified health care professional on the day of the encounter, face-to-face or not: preparing, examining, counseling, ordering, documenting, communicating results and coordinating care. Time on activities normally performed by clinical staff, and time spent on other separately reported services, does not count.
Sources
- CPT Evaluation and Management (E/M) Code and Guideline Changes, effective January 1, 2023 (American Medical Association) Table 1, Levels of Medical Decision Making; definitions of problems, data and risk; guidelines for total time.
- Evaluation and Management Services, MLN Booklet MLN006764, May 2026 (CMS) Medicare rules, including prolonged office visits with HCPCS G2212.
- CPT Evaluation and Management overview (American Medical Association) The time thresholds in this page are those in the CPT code set since 2024, when the earlier time ranges were replaced by minimums.
How this page was made: written with AI assistance from the sources above and checked against them on December 5, 2026. It has not been reviewed line by line by a certified coder. CPT is a registered trademark of the American Medical Association; code descriptions here are paraphrased, not the official text.