gives an expression cell that can appear in a Wolfram System notebook.


gives an expression cell with the specified style.


gives an expression cell with multiple styles applied to it.

Details and Options

  • Expression cells can contain any Wolfram Language expressions, including graphics and dynamic objects.
  • An ExpressionCell can appear anywhere in a Wolfram Language expression.
  • ExpressionCell[expr] by default formats expr in the current default output format type, typically StandardForm.
  • Typical possible styles for expression cells include "Input", "Output", "Section", etc.
  • CellPrint[ExpressionCell[expr, "Print"]] is normally effectively equivalent to Print[expr].
  • ExpressionCell can have any of the many options of Cell, including, for example:
  • Backgroundthe color of the background for the cell
    CellBaselinealignment relative to surrounding text
    CellFramewhether to draw a frame around the cell
    CellTagstags for the cell
    Editablewhether to allow the contents of the cell to be edited
    FontSizethe default size of text in the cell
    TextAlignmenthow to align the contents of the cell
  • ExpressionCell[Null] gives an empty expression cell.


open allclose all

Basic Examples  (1)

Scope  (4)

2D and 3D graphics as well as formulas can be part of the content:

An expression cell can appear within a text cell:

Use different named styles:

Use more than one style:

Applications  (1)

A simple function that produces a document as an answer using expression and text cells:

Properties & Relations  (2)

TextCell and ExpressionCell format contents differently:

Cell is used for low-level descriptions, including forms that are not complete expressions:

Possible Issues  (1)

Certain Cell options only affect standalone cells, such as cells produced by CellPrint, and do not affect cells that occur within an output cell:

Wolfram Research (2007), ExpressionCell, Wolfram Language function, (updated 2017).


Wolfram Research (2007), ExpressionCell, Wolfram Language function, (updated 2017).


@misc{reference.wolfram_2020_expressioncell, author="Wolfram Research", title="{ExpressionCell}", year="2017", howpublished="\url{}", note=[Accessed: 26-January-2021 ]}


@online{reference.wolfram_2020_expressioncell, organization={Wolfram Research}, title={ExpressionCell}, year={2017}, url={}, note=[Accessed: 26-January-2021 ]}


Wolfram Language. 2007. "ExpressionCell." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2017.


Wolfram Language. (2007). ExpressionCell. Wolfram Language & System Documentation Center. Retrieved from