Products
  • Wolfram|One

    The definitive Wolfram Language and notebook experience

  • Mathematica

    The original technical computing environment

  • System Modeler

    Multidomain modeling and simulation of complex systems

  • Compute ServicesUse with Mathematica and Wolfram|One
  • AI AccessUse with Mathematica and Wolfram|One
  • Finance Platform
  • Wolfram|Alpha Notebook Edition
  • Application Server
  • Enterprise Private Cloud
  • Wolfram Engine
  • Wolfram Player
  • Wolfram Cloud App
  • Wolfram Player App

More mobile apps

Wolfram|Alpha

  • Wolfram|Alpha Website
  • Wolfram|Alpha APIs

AI Products

  • Wolfram AI Ecosystem
  • Wolfram Foundation Tool
  • Wolfram Cloud MCP
  • Wolfram Local MCP
  • Agent One API
  • CAG Component APIs

Core Technologies of Wolfram Products

  • Wolfram Language
  • Computable Data
  • Wolfram Notebooks
  • Linguistic Understanding

Additional Deployment Options

  • Wolfram Cloud
  • Wolfram Web Engine
  • wolframscript
  • WSTPServer
  • Group & Organizational Licensing
  • All Products
Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

Wolfram Consulting

Data Science, Finance & Business

  • Artificial Intelligence
  • Data Science
  • Healthcare
  • Real Estate

Engineering

  • Civil Engineering
  • Automotive Engineering
  • Sustainable Energy

Science & Technology

  • AgTech
  • Biosciences
  • Environmental Science
  • Food Science
  • Quantum Computation
  • Social and Behavioral Sciences

More Wolfram Solutions

Technology for Education

  • Research Universities
  • Colleges & Teaching Universities
  • High Schools
  • Resources for Students

Education Initiatives

  • Next-Gen EdTech
  • Computer-Based Math

More Solutions for Education

  • Contact Us
Learning & Support

Get Started

  • Wolfram Language Introduction
  • Fast Intro for Programmers
  • Fast Intro for Math Students
  • Wolfram Language Documentation

More Learning

  • Highlighted Core Areas
  • Demonstrations
  • YouTube
  • Daily Study Groups
  • Wolfram Schools and Programs
  • Books

Grow Your Skills

  • Wolfram U

    Courses in computing, science, life and more

  • Community

    Learn, solve problems and share ideas.

  • Blog

    News, views and insights from Wolfram

  • Resources for

    Software Developers

Tech Support

  • Contact Us
  • Support FAQs
  • Support FAQs
  • Contact Us
Company
  • About Wolfram
  • Career Center
  • All Sites & Resources
  • Connect & Follow
  • Contact Us

Work with Us

  • Student Ambassador Initiative
  • Wolfram for Startups
  • Student Opportunities
  • Jobs Using Wolfram Language

Educational Programs for Adults

  • Summer School
  • Winter School

Educational Programs for Youth

  • Middle School Camp
  • High School Research Program
  • Computational Adventures

Read

  • Stephen Wolfram's Writings
  • Wolfram Blog
  • Wolfram Tech | Books
  • Wolfram Media
  • Complex Systems

Educational Resources

  • Wolfram MathWorld
  • Wolfram in STEM
  • Wolfram Challenges
  • Wolfram Problem Generator

Wolfram Initiatives

  • Wolfram Science
  • Wolfram Foundation
  • History of Mathematics Project

Events

  • Stephen Wolfram Livestreams
  • Online & In-Person Events
  • Contact Us
  • Connect & Follow
For AIs
  • Your Account
  • User Portal
  • Wolfram Cloud
  • Products
    • Wolfram|One
    • Mathematica
    • System Modeler
    • Compute ServicesUse with Mathematica and Wolfram|One
    • AI AccessUse with Mathematica and Wolfram|One
    • Finance Platform
    • Wolfram|Alpha Notebook Edition
    • Application Server
    • Enterprise Private Cloud
    • Wolfram Engine
    • Wolfram Player
    • Wolfram Cloud App
    • Wolfram Player App

    More mobile apps

    • Wolfram|Alpha
      • Wolfram|Alpha Website
      • Wolfram|Alpha APIs
    • AI Products
      • Wolfram AI Ecosystem
      • Wolfram Foundation Tool
      • Wolfram Cloud MCP
      • Wolfram Local MCP
      • Agent One API
      • CAG Component APIs
    • Core Technologies
      • Wolfram Language
      • Computable Data
      • Wolfram Notebooks
      • Linguistic Understanding
    • Additional Deployment Options
      • Wolfram Cloud
      • Wolfram Web Engine
      • wolframscript
      • WSTPServer
    • Group & Organizational Licensing
    • All Products
  • Consulting & Solutions
    • Wolfram Consulting

    Data Science, Finance & Business

    • Artificial Intelligence
    • Data Science
    • Healthcare
    • Real Estate

    Engineering

    • Civil Engineering
    • Automotive Engineering
    • Sustainable Energy

    Science & Technology

    • AgTech
    • Biosciences
    • Environmental Science
    • Food Science
    • Quantum Computation
    • Social and Behavioral Sciences

    More Wolfram Solutions

    Technology for Education

    • Research Universities
    • Colleges & Teaching Universities
    • High Schools
    • Resources for Students

    Education Initiatives

    • Next-Gen EdTech
    • Computer-Based Math

    More Solutions for Education

    • Contact Us
  • Learning & Support

    Get Started

    • Wolfram Language Introduction
    • Fast Intro for Programmers
    • Fast Intro for Math Students
    • Wolfram Language Documentation

    Grow Your Skills

    • Wolfram U

      Courses in computing, science, life and more

    • Community

      Learn, solve problems and share ideas.

    • Blog

      News, views and insights from Wolfram

    • Resources for

      Software Developers
    • Tech Support
      • Contact Us
      • Support FAQs
    • More Learning
      • Highlighted Core Areas
      • Demonstrations
      • YouTube
      • Daily Study Groups
      • Wolfram Schools and Programs
      • Books
    • Support FAQs
    • Contact Us
  • Company
    • About Wolfram
    • Career Center
    • All Sites & Resources
    • Connect & Follow
    • Contact Us

    Work with Us

    • Student Ambassador Initiative
    • Wolfram for Startups
    • Student Opportunities
    • Jobs Using Wolfram Language

    Educational Programs for Adults

    • Summer School
    • Winter School

    Educational Programs for Youth

    • Middle School Camp
    • High School Research Program
    • Computational Adventures

    Read

    • Stephen Wolfram's Writings
    • Wolfram Blog
    • Wolfram Tech | Books
    • Wolfram Media
    • Complex Systems
    • Educational Resources
      • Wolfram MathWorld
      • Wolfram in STEM
      • Wolfram Challenges
      • Wolfram Problem Generator
    • Wolfram Initiatives
      • Wolfram Science
      • Wolfram Foundation
      • History of Mathematics Project
    • Events
      • Stephen Wolfram Livestreams
      • Online & In-Person Events
    • Contact Us
    • Connect & Follow
  • For AIs
  • Wolfram Cloud
  • Your Account
  • User Portal
Wolfram Language & System Documentation Center
Listable
  • See Also
    • Thread
    • Threaded
    • NonThreadable
    • Map
    • Sequence
    • SparseArray
    • MatrixFunction
  • Related Guides
    • Attributes
    • Math & Counting Operations on Lists
    • Applying Functions to Lists
    • Defining Variables and Functions
  • Workflows
    • Run a Computation in Parallel
  • Tech Notes
    • Attributes
    • Operations on Scalars, Vectors, and Matrices
    • See Also
      • Thread
      • Threaded
      • NonThreadable
      • Map
      • Sequence
      • SparseArray
      • MatrixFunction
    • Related Guides
      • Attributes
      • Math & Counting Operations on Lists
      • Applying Functions to Lists
      • Defining Variables and Functions
    • Workflows
      • Run a Computation in Parallel
    • Tech Notes
      • Attributes
      • Operations on Scalars, Vectors, and Matrices

Listable

is an attribute that can be assigned to a symbol to indicate that the function should automatically be threaded over lists that appear as its arguments.

Details
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Applications  
Properties & Relations  
Possible Issues  
See Also
Tech Notes
Related Guides
Related Workflows
Related Links
History
Cite this Page
BUILT-IN SYMBOL
  • See Also
    • Thread
    • Threaded
    • NonThreadable
    • Map
    • Sequence
    • SparseArray
    • MatrixFunction
  • Related Guides
    • Attributes
    • Math & Counting Operations on Lists
    • Applying Functions to Lists
    • Defining Variables and Functions
  • Workflows
    • Run a Computation in Parallel
  • Tech Notes
    • Attributes
    • Operations on Scalars, Vectors, and Matrices
    • See Also
      • Thread
      • Threaded
      • NonThreadable
      • Map
      • Sequence
      • SparseArray
      • MatrixFunction
    • Related Guides
      • Attributes
      • Math & Counting Operations on Lists
      • Applying Functions to Lists
      • Defining Variables and Functions
    • Workflows
      • Run a Computation in Parallel
    • Tech Notes
      • Attributes
      • Operations on Scalars, Vectors, and Matrices

Listable

Listable

is an attribute that can be assigned to a symbol to indicate that the function should automatically be threaded over lists that appear as its arguments.

Details

  • Listable functions are effectively applied separately to each element in a list, or to corresponding elements in each list if there is more than one list.
  • Most built‐in mathematical functions are Listable. »
  • All the arguments which are lists in a Listable function must be of the same length. »
  • Arguments that are not lists are copied as many times as there are elements in the lists.

Examples

open all close all

Basic Examples  (4)

A Listable function threads over its list argument:

Wolfram Language code: Attributes[f] = {Listable}; f[{1, 2, 3}]

Log is listable:

Wolfram Language code: Log[{a, b, c}]
Wolfram Language code: Attributes[Log]

Listable functions combine corresponding elements:

Wolfram Language code: {a, b, c} + {x, y, z}

Arguments that are not lists are replicated as needed:

Wolfram Language code: {a, b, c} + x
Wolfram Language code: {{a, b}, {c, d}} + x

Scope  (4)

Define a function to be listable:

Wolfram Language code: f[x_] := If[x > 0, Sqrt[x], Sqrt[-x]]; SetAttributes[f, Listable];
Wolfram Language code: f[{3, 0, -2}]

Most built-in mathematical functions are listable:

Wolfram Language code: Attributes[Power]
Wolfram Language code: {a, b, c} ^ {1, 2, 3}
Wolfram Language code: {a, b, c} ^ 5

Listability works for any nesting depth of lists:

Wolfram Language code: Sqrt[{{1, 2}, {3, 4}}]

The nesting level of the different arguments need not be the same:

Wolfram Language code: {{a, b}, {c, d}} ^ {2, 3}

Listability works on other list-like constructs such as SparseArray:

Wolfram Language code: SetAttributes[f, Listable]
Wolfram Language code: f[SparseArray[{1 -> E, 5 -> Pi}]]

Association:

Wolfram Language code: f[Association[1 -> 1, 5 -> 5]]

Applications  (2)

To apply a function to a vector, take advantage of Listable functions when possible:

Wolfram Language code: v = RandomReal[1, 10 ^ 6];

Use the listability of Plus, Power, Sin, and Times:

Wolfram Language code: Timing[fvl = Sin[2 Pi (v - .5) ^ 2];]

Use Map:

Wolfram Language code: Timing[fvm = Map[Sin[2 Pi (# - .5) ^ 2]&, v];]

Use Table:

Wolfram Language code: Timing[fvt = Table[Sin[2 Pi (x - .5) ^ 2], {x, v}];]

Use Table and Part to access elements of v as might be done in a lower-level language:

Wolfram Language code: Timing[fvp = Table[Sin[2 Pi(v[[i]] - .5) ^ 2], {i, Length[v]}];]

The results are the same up to numerical roundoff:

Wolfram Language code: {Norm[fvl - fvm], Norm[fvl - fvt], Norm[fvl - fvp]}

Use efficient sparse arithmetic to numerically solve the heat equation :

Wolfram Language code: n = 1000; x = N[Range[0, n] / n];

Matrix for a second-order approximation to the second derivative on the grid :

Wolfram Language code: d2 = n ^ 2SparseArray[{{i_, i_} -> -2., {i_, j_} /; Abs[i - j] == 1 -> 1.}, {n + 1, n + 1}, 0.]

Incorporate Dirichlet boundary conditions to form the Jacobian J:

Wolfram Language code: j = d2; j[[1, {1, 2}]] = 0.; j[[-1, {-1, -2}]] = 0.; j = SparseArray[j]

The sparse identity matrix:

Wolfram Language code: id = IdentityMatrix[n + 1, SparseArray]

Form sparse matrix for using the listability of arithmetic:

Wolfram Language code: m = id - 0.001 j

LU decomposition of in a functional form:

Wolfram Language code: lu = LinearSolve[m]

Step initial condition on spatial grid x using the listability of UnitStep:

Wolfram Language code: init = UnitStep[x - .5]; ListPlot[init, DataRange -> {0, 1}]

Get the solution at , using the backward Euler method:

Wolfram Language code: sol = init; Do[sol = lu[sol], {10}]
Wolfram Language code: ListPlot[sol, DataRange -> {0, 1}]

Properties & Relations  (7)

Listable, in general, functions effectively apply Thread many times:

Wolfram Language code: SetAttributes[f, Listable];
Wolfram Language code: f[{1, 2, 3}]
Wolfram Language code: g[{1, 2, 3}]
Wolfram Language code: Thread[g[{1, 2, 3}]]

Applying listable functions to several arrays of equal dimension is equivalent to using MapThread:

Wolfram Language code: SetAttributes[f, Listable];
Wolfram Language code: {a, b} = {Array[x, {2, 2}], Array[y, {2, 2}]};
Wolfram Language code: f[a, b] == MapThread[f, {a, b}, 2]

Listable functions applied to several arrays require overlapping dimensions to be equal:

Wolfram Language code: SetAttributes[f, Listable];

Arguments with equal dimensions:

Wolfram Language code: f[Array[x, {2}], Array[y, {2}]]//Dimensions

Arguments with equal overlapping dimensions, i.e. {2} has the same leading dimensions as {2,3}:

Wolfram Language code: f[Array[x, {2}], Array[y, {2, 3}]]//Dimensions

Arguments with unequal overlapping dimensions, i.e. {2} does not have the same leading dimensions as {3,2}:

Wolfram Language code: f[Array[x, {2}], Array[y, {3, 2}]];

Listable functions applied to arrays can be written as a Table:

Wolfram Language code: SetAttributes[f, Listable];

Let :

Wolfram Language code: a1 = Array[x, {5}]; a2 = Array[y, {5, 7}]; a3 = Array[z, {5}];

In general, :

Wolfram Language code: f[a1, a2, a3] == Table[f[a1[[i1]], a2[[i1, i2]], a3[[i1]]], {i1, 5}, {i2, 7}]

A function implemented in terms of a listable operation may not need the Listable attribute:

Wolfram Language code: g[x_] := x ^ 2
Wolfram Language code: g[{1, 2, 3}]
Wolfram Language code: Attributes[Power]

The system symbols with the Listable attribute:

Wolfram Language code: listable = Entity["WolframLanguageSymbol", "Listable"]["SymbolsUsingAsAttribute"]; Short[listable, .5]

More than half these are arithmetic functions possessing the NumericFunction attribute as well:

Wolfram Language code: {Length[listable], Length[EntityList[EntityClass["WolframLanguageSymbol", "Attributes" -> ContainsAll[{"Listable", "NumericFunction"}]]]]}

The products given by Dot, Times, and KroneckerProduct are inner, element-wise, and outer:

Wolfram Language code: u = {a, b, c, d}; v = {1, 2, 3, 4};

The inner product of two vectors:

Wolfram Language code: u.v

The vector resulting from the product of corresponding elements:

Wolfram Language code: u v

The matrix resulting from the outer product of the vectors:

Wolfram Language code: KroneckerProduct[u, v] // MatrixForm

Possible Issues  (1)

All list arguments must have the same length:

Wolfram Language code: {a, b, c} ^ {1, 2}

See Also

Thread  Threaded  NonThreadable  Map  Sequence  SparseArray  MatrixFunction

Tech Notes

    ▪
  • Attributes
  • ▪
  • Operations on Scalars, Vectors, and Matrices

Related Guides

    ▪
  • Attributes
  • ▪
  • Math & Counting Operations on Lists
  • ▪
  • Applying Functions to Lists
  • ▪
  • Defining Variables and Functions

Related Workflows

    Related Workflows
    ▪
  • Run a Computation in Parallel

Related Links

  • NKS|Online  (A New Kind of Science)

History

Introduced in 1988 (1.0)

Wolfram Research (1988), Listable, Wolfram Language function, https://reference.wolfram.com/language/ref/Listable.html.

Text

Wolfram Research (1988), Listable, Wolfram Language function, https://reference.wolfram.com/language/ref/Listable.html.

CMS

Wolfram Language. 1988. "Listable." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/Listable.html.

APA

Wolfram Language. (1988). Listable. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Listable.html

BibTeX

@misc{reference.wolfram_2026_listable, author="Wolfram Research", title="{Listable}", year="1988", howpublished="\url{https://reference.wolfram.com/language/ref/Listable.html}", note=[Accessed: 01-September-2026]}

BibLaTeX

@online{reference.wolfram_2026_listable, organization={Wolfram Research}, title={Listable}, year={1988}, url={https://reference.wolfram.com/language/ref/Listable.html}, note=[Accessed: 01-September-2026]}

Top
Introduction for Programmers
Introductory Book
Wolfram Function Repository | Wolfram Data Repository | Wolfram Data Drop | Wolfram Language Products
Top
  • Products
  • Wolfram|One
  • Mathematica
  • AI Access
  • Compute Services
  • System Modeler

  • Wolfram|Alpha Notebook Edition
  • Wolfram|Alpha Pro
  • Mobile Apps

  • Wolfram Engine
  • Wolfram Player

  • Volume & Site Licensing
  • Server Deployment Options
  • Consulting
  • Wolfram Consulting
  • Repositories
  • Data Repository
  • Function Repository
  • Community Paclet Repository
  • Neural Net Repository
  • Prompt Repository

  • Wolfram Language Example Repository
  • Notebook Archive
  • Wolfram GitHub
  • Learning
  • Wolfram U
  • Wolfram Language Documentation
  • Webinars & Training
  • Educational Programs

  • Wolfram Language Introduction
  • Fast Introduction for Programmers
  • Fast Introduction for Math Students
  • Books

  • Wolfram Community
  • Wolfram Blog
  • Public Resources
  • Wolfram|Alpha
  • Wolfram Problem Generator
  • Wolfram Challenges

  • Computer-Based Math
  • Computational Thinking
  • Computational Adventures

  • Demonstrations Project
  • Wolfram Data Drop
  • MathWorld
  • Wolfram Science
  • Wolfram Media Publishing
  • Customer Resources
  • Store
  • Product Downloads
  • User Portal
  • Your Account
  • Organization Access

  • Support FAQ
  • Contact Support
  • Company
  • About Wolfram
  • Careers
  • Contact
  • Events
Wolfram Community Wolfram Blog
Legal & Privacy Policy
WolframAlpha.com | WolframCloud.com
© 2026 Wolfram
© 2026 Wolfram | Legal & Privacy Policy |
English