CalcWorldHub
Free online calculator · no signup

Finite straight current segment magnetic vector calculator

Calculate the magnetic-field vector of a finite straight current segment at an arbitrary three-dimensional query point.

4,000 tools
Finite straight current segment magnetic vector calculator — Wire start xyz (m), Wire end xyz (m), Query xyz (m) and calculation method
Finite straight current segment magnetic vector calculator: inputs and calculation method.

How to use this calculator

Calculate the magnetic-field vector of a finite straight current segment at an arbitrary three-dimensional query point.

  1. Enter Wire start xyz (m), Wire end xyz (m), Query xyz (m), Signed current from start to end (A). Match the units shown beside each field and review the result together with the assumptions below.
  2. Read the worked example below to check the expected input format and result.
  3. Compare another scenario by changing one input at a time. Use Reset to return to the starting values.
Calculation guide

Finite straight current segment magnetic vector explained

Calculate the Biot–Savart field vector from one finite straight current segment, with current sign defined from the entered start point to end point.

Field magnitude13.9659microtesla
Field magnitude: 13.96594497 microtesla in the worked scenario.

How the calculation works

B=(μ0I/4π) (r1×r2)/|r1×r2|² · [L·r1/|r1|−L·r2/|r2|], with L=b−a.

Displacement vectors r1 and r2 run from the start and end to the query point. The cross product fixes the right-hand-rule direction. Collinear points outside the segment have zero field; points on the ideal conducting segment are singular.

Inputs and units

a — Wire start xyz (m)
Three Cartesian start coordinates in metres. Positive current flows from this point toward b. Use comma-separated values in the stated order.
b — Wire end xyz (m)
Three Cartesian end coordinates in the same frame and metre unit. Use comma-separated values in the stated order.
p — Query xyz (m)
Three Cartesian query coordinates. A point on the ideal wire segment is excluded. Use comma-separated values in the stated order.
I — Signed current from start to end (A)
Signed current from start to end (A). This is a dimensionless model parameter unless the label explicitly states a unit.

Limits of this model

Thin isolated segment in vacuum. A physical steady circuit must close, and its return path can contribute additional field. No finite conductor radius, magnetic medium, or skin effect.

Check this example

Wire start xyz (m) = 0,0,-0.5; Wire end xyz (m) = 0,0,0.5; Query xyz (m) = 0.1,0.05,0; Signed current from start to end (A) = 8.

  • Field magnitude: 13.96594497 microtesla
  • Field vector: -6.24576047, 12.49152093, 0 microtesla

A one-metre segment carries eight amperes along positive z. The offset query receives an azimuthal field whose Cartesian direction follows the right-hand rule.

Reading the outputs

The vector components and magnitude use microtesla. Reversing endpoint order without changing current sign reverses the modeled field.

Frequently asked questions

Why mention the return path?

A real circuit contains other current-carrying conductors whose fields are not included here.

Can I query beyond an endpoint on the same axis?

Yes. The ideal segment contribution is zero there.

Can I sum several segments?

Field superposition is valid, but this interface evaluates one segment at a time.

How do I use the Finite straight current segment magnetic vector calculator?

Enter Wire start xyz (m), Wire end xyz (m), Query xyz (m), Signed current from start to end (A). Match the units shown beside each field and review the result together with the assumptions below.

What is a worked example of Finite straight current segment magnetic vector?

Wire start xyz (m) = 0,0,-0.5; Wire end xyz (m) = 0,0,0.5; Query xyz (m) = 0.1,0.05,0; Signed current from start to end (A) = 8. Field magnitude: 13.96594497 microtesla Field vector: -6.24576047, 12.49152093, 0 microtesla A one-metre segment carries eight amperes along positive z. The offset query receives an azimuthal field whose Cartesian direction follows the right-hand rule.