Sphere
✖
Sphere
Details and Options

- Sphere can be used as a geometric region and a graphics primitive.
- Sphere[] is equivalent to Sphere[{0,0,0}]. »
- Sphere[n] for positive integer n is equivalent to Sphere[{0,…,0}], a unit sphere in
.
- Sphere represents the shell
.
- Sphere can be used in Graphics and Graphics3D.
- In graphics, the points p, pi and radii r can be Scaled and Dynamic expressions.
- Graphics rendering is affected by directives such as FaceForm, Specularity, Opacity, and color.
- Sphere[{p1,p2,…},{r1,r2,…}] represents a collection of spheres with centers pi and radii ri.

Background & Context
- Sphere is a graphics and geometry primitive that represents a sphere in
-dimensional space. In particular, Sphere[p,r] represents the sphere
in
with center p and radius r, where r may be any non-negative real number and p can have any positive length
. The shorthand form Sphere[p] is equivalent to Sphere[p,1] and Sphere[n] is equivalent to Sphere[ConstantArray[0, n],1], while Sphere[] autoevaluates to Sphere[{0,0,0}].
- Collections of sphere objects (multi-spheres) of common radius
may be efficiently represented using Sphere[{p1,…,pk},r] and balls of varying radii represented using Sphere[{p1,…,pk},{r1,…,rk}].
- Sphere objects can be visually formatted in two and three dimensions using Graphics and Graphics3D, respectively. The appearance of Sphere objects in graphics can be modified by specifying the face directive FaceForm (in 3D); color directives such as Red; the transparency and specularity directives Opacity and Specularity; and the style option Antialiasing.
- Sphere may also serve as a region specification over which a computation should be performed. For example, Integrate[1,{x,y,z}∈Sphere[{0,0,0},r]] and Area[Sphere[{0,0,0},r]] both return the surface area
of a sphere of radius
.
- Sphere is related to a number of other symbols. Sphere represents the boundary of a ball, as can be computed using RegionBoundary[Ball[{x,y,z},r]]. Ellipsoidal surfaces (not to be confused with the solid ellipsoids represented by Ellipsoid) may be obtained from a Sphere using Scaled. A sphere passing through a set of given points may be obtained using Circumsphere. Sphere objects may be represented as ImplicitRegion[(x-u)2+(y-v)2+(z-w)2r2,{u,v,w}] or ParametricRegion[{x,y,z}+r{Cos[θ]Sin[ϕ],Sin[θ]Sin[ϕ],Cos[ϕ]},{{θ,0,2π},{ϕ,0,π}}]. Precomputed properties of the sphere in standard position are available using SurfaceData["Sphere",property] or Entity["Surface","Sphere"][property].
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Scope (22)Survey of the scope of standard use cases
Graphics (12)
Specification (4)

https://wolfram.com/xid/0y7yz6-btz1q2


https://wolfram.com/xid/0y7yz6-l0hn2

Short form for a unit sphere at the origin:

https://wolfram.com/xid/0y7yz6-37iz6


https://wolfram.com/xid/0y7yz6-mlyae

https://wolfram.com/xid/0y7yz6-k7s9me

Styling (4)

https://wolfram.com/xid/0y7yz6-cdxdbh

Different properties can be specified for the front and back of faces using FaceForm:

https://wolfram.com/xid/0y7yz6-vb6wx

Spheres with different specular exponents:

https://wolfram.com/xid/0y7yz6-d1tyd0


https://wolfram.com/xid/0y7yz6-ca9zt

Opacity specifies the face opacity:

https://wolfram.com/xid/0y7yz6-v6995

Coordinates (4)
Use Scaled coordinates:

https://wolfram.com/xid/0y7yz6-d1y67i

Use Scaled radius:

https://wolfram.com/xid/0y7yz6-ek3mgx

Specify scaled offsets from the ordinary coordinates:

https://wolfram.com/xid/0y7yz6-nn6a0g

Points can be Dynamic:

https://wolfram.com/xid/0y7yz6-6gl1zz

Regions (10)
Embedding dimension is the dimension of the space in which the sphere lives:

https://wolfram.com/xid/0y7yz6-y220

Geometric dimension is the dimension of the shape itself:

https://wolfram.com/xid/0y7yz6-bx9tom


https://wolfram.com/xid/0y7yz6-c7lq97

https://wolfram.com/xid/0y7yz6-f70gib

Get conditions for point membership:

https://wolfram.com/xid/0y7yz6-inebf9


https://wolfram.com/xid/0y7yz6-se0twe

https://wolfram.com/xid/0y7yz6-e06l44


https://wolfram.com/xid/0y7yz6-gwq4b4


https://wolfram.com/xid/0y7yz6-oknxhk


https://wolfram.com/xid/0y7yz6-jcsb4b

https://wolfram.com/xid/0y7yz6-8aexdg

The equidistance contours for a sphere:

https://wolfram.com/xid/0y7yz6-ew8anh


https://wolfram.com/xid/0y7yz6-kjgbyj

https://wolfram.com/xid/0y7yz6-zognbt


https://wolfram.com/xid/0y7yz6-d7g53y

https://wolfram.com/xid/0y7yz6-mtue

Nearest points to an enclosing sphere:

https://wolfram.com/xid/0y7yz6-e29k5d

https://wolfram.com/xid/0y7yz6-5ksoo8

https://wolfram.com/xid/0y7yz6-uv1cfm


https://wolfram.com/xid/0y7yz6-ypd96t


https://wolfram.com/xid/0y7yz6-po0eks


https://wolfram.com/xid/0y7yz6-dym4fu

https://wolfram.com/xid/0y7yz6-i3tfrr


https://wolfram.com/xid/0y7yz6-l3exhn


https://wolfram.com/xid/0y7yz6-bx1r15

Integrate over a sphere region:

https://wolfram.com/xid/0y7yz6-fivgav

https://wolfram.com/xid/0y7yz6-banwkr

Optimize over a sphere region:

https://wolfram.com/xid/0y7yz6-nf9ton

https://wolfram.com/xid/0y7yz6-hyz4dq

Solve equations in a sphere region:

https://wolfram.com/xid/0y7yz6-bnrw6

https://wolfram.com/xid/0y7yz6-lhnpf3

Applications (5)Sample problems that can be solved with this function
Platonic polyhedra represented by spheres:

https://wolfram.com/xid/0y7yz6-bfsws8

https://wolfram.com/xid/0y7yz6-efb6b4


https://wolfram.com/xid/0y7yz6-clnpvv


https://wolfram.com/xid/0y7yz6-fp53yw

Use Sphere to render nodes in a GraphPlot3D:

https://wolfram.com/xid/0y7yz6-u52ea

Use Sphere in a BubbleChart3D:

https://wolfram.com/xid/0y7yz6-egr5c3

Properties & Relations (8)Properties of the function, and connections to other functions
Use Scale to get ellipsoids:

https://wolfram.com/xid/0y7yz6-il7s6t

The 2D version of Sphere is Circle:

https://wolfram.com/xid/0y7yz6-biltrd

An implicit specification of a sphere generated by ContourPlot3D:

https://wolfram.com/xid/0y7yz6-be10oz

A parametric specification of a sphere generated by ParametricPlot3D:

https://wolfram.com/xid/0y7yz6-i7028d

ChemicalData plots a molecule using spheres and cylinders:

https://wolfram.com/xid/0y7yz6-e080hl

Several Import formats use spheres to represent molecules:

https://wolfram.com/xid/0y7yz6-iourzl

Circumsphere specifies a Sphere from points on the surface:

https://wolfram.com/xid/0y7yz6-7uiu1i

https://wolfram.com/xid/0y7yz6-02w136

ImplicitRegion can represent any Sphere:

https://wolfram.com/xid/0y7yz6-hw5ae3

https://wolfram.com/xid/0y7yz6-fw1b9n

Neat Examples (4)Surprising or curious use cases

https://wolfram.com/xid/0y7yz6-coltip


https://wolfram.com/xid/0y7yz6-lq3


https://wolfram.com/xid/0y7yz6-xxl

Sample points used by NIntegrate:

https://wolfram.com/xid/0y7yz6-n06bq

https://wolfram.com/xid/0y7yz6-bankjl

Wolfram Research (2007), Sphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Sphere.html (updated 2014).
Text
Wolfram Research (2007), Sphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Sphere.html (updated 2014).
Wolfram Research (2007), Sphere, Wolfram Language function, https://reference.wolfram.com/language/ref/Sphere.html (updated 2014).
CMS
Wolfram Language. 2007. "Sphere." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Sphere.html.
Wolfram Language. 2007. "Sphere." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2014. https://reference.wolfram.com/language/ref/Sphere.html.
APA
Wolfram Language. (2007). Sphere. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Sphere.html
Wolfram Language. (2007). Sphere. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Sphere.html
BibTeX
@misc{reference.wolfram_2025_sphere, author="Wolfram Research", title="{Sphere}", year="2014", howpublished="\url{https://reference.wolfram.com/language/ref/Sphere.html}", note=[Accessed: 18-May-2025
]}
BibLaTeX
@online{reference.wolfram_2025_sphere, organization={Wolfram Research}, title={Sphere}, year={2014}, url={https://reference.wolfram.com/language/ref/Sphere.html}, note=[Accessed: 18-May-2025
]}